vim/vim-7.3-disable_gcc_warning_eval_c.patch

20 lines
642 B
Diff

diff -rup vim73.orig/src/eval.c vim73/src/eval.c
--- vim73.orig/src/eval.c 2010-08-09 22:12:14.000000000 +0200
+++ vim73/src/eval.c 2010-11-22 08:52:10.660213250 +0100
@@ -10,6 +10,15 @@
/*
* 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
+
#if defined(MSDOS) || defined(WIN16) || defined(WIN32) || defined(_WIN64)
# include "vimio.h" /* for mch_open(), must be before vim.h */
#endif