> 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?
--
hundred-and-one symptoms of being an internet addict:
91. It's Saturday afternoon in the middle of May and you
are on computer.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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/20211220213633.9FBE81C0DCA%40moolenaar.net.