On Mon, Dec 20, 2021 at 10:58 PM Tony Mechelynck <[email protected]> wrote: > > On Mon, Dec 20, 2021 at 10:36 PM Bram Moolenaar <[email protected]> wrote: > > > > > > > On Mon, Dec 20, 2021 at 5:43 PM tooth pik <[email protected]> wrote: > > > > > > > > am i supposed to be getting (and ignoring?) a warning on make > > > > that _FORIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] > > > > > > > > > > I confirm that after applying patches 3857 to 3861, the compile step > > > for every single module in all five featuresets gives the same > > > warning, for instance in Tiny src/version.c : > > > > > > gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -Wall -Wextra -Wshadow > > > -Wmissing-prototypes -Wunreachable-code -Wno-deprecated-declarations > > > -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DEXITFREE > > > -DABORT_ON_INTERNAL_ERROR version.c -o objects/version.o > > > In file included from /usr/include/bits/libc-header-start.h:33:0, > > > from /usr/include/limits.h:26, > > > from > > > /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/limits.h:194, > > > from > > > /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/syslimits.h:7, > > > from > > > /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/limits.h:34, > > > from vim.h:78, > > > from version.c:10: > > > /usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE > > > requires compiling with optimization (-O) [-Wcpp] > > > # warning _FORTIFY_SOURCE requires compiling with optimization (-O) > > > ^~~~~~~ > > > > This must be a recent change on your system. My /usr/include/features.h > > does not have this line. > > > > We could probably add a configure check, but when changing the compile > > options later it would do the wrong thing. You would have to run > > configure every time if you change the optimization. > > > > Is there a way to disable this warning? > > > > My /usr/include/features.h is dated 24 November and since then, I have > compiled Vim several times without getting this warning. > > The gcc line looks weirdly different from what it used to. Has there > been a recent change in the src/Makefile ? > > I'm going to try "make reconfig" but with little hope.
...No change. Best regards, Tony. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAJkCKXu1_wd5_wQY4kA_xWPgVKhAj8gy2fJ0hyVuaCmDvqRZcw%40mail.gmail.com.
