Project

General

Profile

Feature #1180 » 0030-Silence-deprecated-declarations-warnings-from-C-buil.patch

S3_2, S3_1 - Marko Lindqvist, 12/11/2024 06:21 AM

View differences:

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()
(2-2/2)