Commit 649dab1 1 parent a3c8ae4 commit 649dab1 Copy full SHA for 649dab1
File tree 4 files changed +6
-2
lines changed
4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ if lsb_release -c | grep -q bionic$; then
29
29
export ASAN_OPTIONS=detect_odr_violation=0
30
30
fi
31
31
32
- meson . build-meson -Dbuildtype=release -Ddebug=false -Db_lto=true
32
+ meson . build-meson -Dwerror=true - Dbuildtype=release -Ddebug=false -Db_lto=true
33
33
34
34
# Build some tests with sanitizers
35
35
if [[ $BUILD_SANITIZERS -ne 0 ]]; then
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ add_executable(clockperf affinity.c clock.c drift.c main.c version.c build.h lic
23
23
target_link_libraries (clockperf Threads::Threads OpenMP::OpenMP_C)
24
24
if (NOT MSVC )
25
25
target_link_libraries (clockperf m)
26
+ target_compile_options (clockperf PRIVATE -Wno-deprecated-declarations)
26
27
endif ()
27
28
if (WIN32 OR CYGWIN OR MINGW)
28
29
target_link_libraries (clockperf winmm)
Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ CFLAGS := \
60
60
-Wno-long-long \
61
61
-Wno-overlength-strings \
62
62
-Wold-style-definition \
63
- -Wstrict-prototypes
63
+ -Wstrict-prototypes \
64
+ -Wno-deprecated-declarations
64
65
65
66
LDFLAGS := -lm
66
67
OBJECTS := affinity.o clock.o drift.o main.o version.o
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ lm = compiler.find_library('m')
25
25
threads = dependency (' threads' )
26
26
openmp = dependency (' openmp' )
27
27
28
+ add_project_arguments (compiler.first_supported_argument(' -Wno-deprecated-declarations' ), language : ' c' )
29
+
28
30
executable (' clockperf' ,
29
31
src,
30
32
gen_build_h,
You can’t perform that action at this time.
0 commit comments