vim/vim-7.3-disable_gcc_warning_eval_c.patch
2011-05-17 07:52:29 +00:00

18 lines
499 B
Diff

--- vim73/src/eval.c 2011-05-17 09:45:26.743007190 +0200
+++ vim73/src/eval.c 2011-05-17 09:47:29.964007193 +0200
@@ -11,6 +11,14 @@
* eval.c: Expression evaluation.
*/
+// This workaround disable the GCC compiler warning only in this code file
+// because the code is safe.
+// http://lists.opensuse.org/opensuse-packaging/2010-11/msg00182.html
+#ifdef _FORTIFY_SOURCE
+#undef _FORTIFY_SOURCE
+#define _FORTIFY_SOURCE 1
+#endif
+
#include "vim.h"
#if defined(FEAT_EVAL) || defined(PROTO)