Message ID | 5589AE12.3050608@iki.fi |
---|---|
State | Superseded |
Headers | show |
* Hannu Nyman <hannu.nyman@iki.fi> [2015-06-23 22:05:54 +0300]: > px5g-standalone: fix compilation after fortify-headers > > New fortify-headers functionality (default after r46117) is apparently > conflicting with gcc "-pedantic" option. The package px5g-standalone fails > to compile due to "error: #include_next is a GCC extension" errors. See > https://dev.openwrt.org/ticket/19975 > > Fix the compilation of px5g-standalone by removing the "-pedantic" gcc option. it seems to me that adding __extension__ in front of the include_next line in the fortify headers make the warning go away.
Index: package/utils/px5g-standalone/src/Makefile =================================================================== --- package/utils/px5g-standalone/src/Makefile (revision 46117) +++ package/utils/px5g-standalone/src/Makefile (working copy) @@ -1,7 +1,7 @@ CFLAGS?=-O2 CFLAGS+= SFLAGS:=--std=gnu99 -WFLAGS:=-Wall -Werror -pedantic +WFLAGS:=-Wall -Werror LDFLAGS?= BINARY:=px5g
px5g-standalone: fix compilation after fortify-headers New fortify-headers functionality (default after r46117) is apparently conflicting with gcc "-pedantic" option. The package px5g-standalone fails to compile due to "error: #include_next is a GCC extension" errors. See https://dev.openwrt.org/ticket/19975 Fix the compilation of px5g-standalone by removing the "-pedantic" gcc option. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>