Feature #1180 » 0030-Silence-deprecated-declarations-warnings-from-C-buil.patch
| m4/debug.m4 | ||
|---|---|---|
|
FC_C_FLAGS([-Wno-tautological-compare -Wno-nonnull-compare],
|
||
|
[], [EXTRA_DEBUG_CFLAGS])
|
||
|
if test "x$cxx_works" = "xyes" ; then
|
||
|
FC_CXX_FLAGS([-Wno-tautological-compare -Wno-nonnull-compare],
|
||
|
FC_CXX_FLAGS([-Wno-tautological-compare -Wno-nonnull-compare \
|
||
|
-Wno-deprecated-declarations],
|
||
|
[], [EXTRA_DEBUG_CXXFLAGS])
|
||
|
fi
|
||
| meson.build | ||
|---|---|---|
|
'-Wimplicit-fallthrough'
|
||
|
]
|
||
|
cpp_args = [
|
||
|
'-Wno-deprecated-declarations',
|
||
|
'-fPIC'
|
||
|
]
|
||
|
foreach arg : c_args
|
||
|
if c_compiler.has_argument(arg)
|
||
|
add_global_arguments(arg, language : 'c')
|
||
| ... | ... | |
|
endif
|
||
|
endforeach
|
||
|
add_global_arguments('-fPIC', language : 'cpp')
|
||
|
if cxx_build
|
||
|
foreach arg: cpp_args
|
||
|
if cxx_compiler.has_argument(arg)
|
||
|
add_global_arguments(arg, language : 'cpp')
|
||
|
endif
|
||
|
endforeach
|
||
|
endif
|
||
|
host_system = host_machine.system()
|
||
- « Previous
- 1
- 2
- Next »