kdave / btrfs-progs

Development of userspace BTRFS tools
GNU General Public License v2.0
527 stars 239 forks source link

6.6.2 -- "_FORTIFY_SOURCE" redefined #715

Closed pomac303 closed 7 months ago

pomac303 commented 7 months ago
: warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition For every C file being compiled... - removing the -D_FORTIFY_SOURCE=2 in Makefile.inc removes the notice, but would that be correct?
kdave commented 7 months ago

Do you pass any other flags to configure or make? The fortify options are there as some sane defaults and distros usually set their own which override that, provided that the CFLAGS are set at configure time.

pomac303 commented 7 months ago

No... not really, seems like it was a older gcc version, I have since switched to gcc 13, so you can colse this, sorry for the noise

pomac303 commented 7 months ago

Oh, there is a shiny button for me! closing, old gcc - nothing to be fixed.