Commit 78203c1c authored by Tollef Fog Heen's avatar Tollef Fog Heen

Check for -Wfoo rather than -Wno-foo, since gcc ignores the latter

parent f548d78a
...@@ -458,10 +458,10 @@ gl_LD_VERSION_SCRIPT ...@@ -458,10 +458,10 @@ gl_LD_VERSION_SCRIPT
# failures. # failures.
CFLAGS="${CFLAGS} -Wall -Werror" CFLAGS="${CFLAGS} -Wall -Werror"
OCFLAGS="${OCFLAGS} -Wall -Werror" OCFLAGS="${OCFLAGS} -Wall -Werror"
AX_CHECK_COMPILE_FLAG([-Wno-error=unused-result], AX_CHECK_COMPILE_FLAG([-Werror=unused-result],
[CFLAGS="${CFLAGS} -Wno-error=unused-result" [CFLAGS="${CFLAGS} -Wno-error=unused-result"
OCFLAGS="${OCFLAGS} -Wno-error=unused-result"], OCFLAGS="${OCFLAGS} -Wno-error=unused-result"],
[AX_CHECK_COMPILE_FLAG([-Wno-unused-result], [AX_CHECK_COMPILE_FLAG([-Wunused-result],
[CFLAGS="${CFLAGS} -Wno-unused-result" [CFLAGS="${CFLAGS} -Wno-unused-result"
OCFLAGS="${OCFLAGS} -Wno-unused-result"])]) OCFLAGS="${OCFLAGS} -Wno-unused-result"])])
......
Markdown is supported
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