Skip to content
Commit 0ff7ca94 authored by Philip Withnall's avatar Philip Withnall
Browse files

giscanner: Disable warnings arising from -D_FORTIFY_SOURCE -O0

Using distutils.ccompiler means that we are forced to use the CFLAGS
from the system’s Python installation, which may contain
-D_FORTIFY_SOURCE. The user’s environment-provided CFLAGS may contain
-O0 (because they are a developer). These two flags cause a warning when
used together. Silence that warning by passing -Wno-cpp to disable
warnings from #warning preprocessor statements in the generated C code.

It doesn’t seem to be possible to selectively undefine _FORTIFY_SOURCE
or to stop using the compiler flags from distutils.sysconfig,
unfortunately.

https://bugzilla.gnome.org/show_bug.cgi?id=757934
parent c598d731
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment