Commit db773a4d authored by Daniel Agar's avatar Daniel Agar

cmake ignore gcc warnings in from_cpython

-added -Wno-unused-result and -Wno-strict-aliasing for gcc 4.8.2 compatibility
parent 38fdf541
......@@ -23,5 +23,5 @@ file(GLOB_RECURSE STDOBJECT_SRCS Objects structseq.c capsule.c stringobject.c ex
# compile specified files in from_cpython/Python
file(GLOB_RECURSE STDPYTHON_SRCS Python getargs.c pyctype.c formatter_string.c pystrtod.c dtoa.c formatter_unicode.c structmember.c)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-field-initializers -Wno-tautological-compare -Wno-type-limits")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-field-initializers -Wno-tautological-compare -Wno-type-limits -Wno-unused-result -Wno-strict-aliasing")
add_library(FROM_CPYTHON OBJECT ${STDMODULE_SRCS} ${STDOBJECT_SRCS} ${STDPYTHON_SRCS})
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