From 698c78f50e5e6ea638bea8f10398bdfe8691ac48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Thu, 20 Dec 2018 00:00:00 +0000 Subject: Cleanup strict-prototypes warnings --- girepository/cmph/cmph_time.h | 6 ++++-- girepository/cmph/meson.build | 2 -- girepository/meson.build | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/girepository/cmph/cmph_time.h b/girepository/cmph/cmph_time.h index c03558fb..5d5d8933 100644 --- a/girepository/cmph/cmph_time.h +++ b/girepository/cmph/cmph_time.h @@ -24,8 +24,9 @@ } *elapsed_time = (double)e_time.tv_sec + ((double)e_time.tv_usec/1000000.0); } - static inline void dummy_elapsed_time_in_seconds() + static inline void dummy_elapsed_time_in_seconds(double * elapsed_time) { + (void) elapsed_time; } static inline void elapsed_time_in_useconds(cmph_uint64 * elapsed_time) { @@ -35,8 +36,9 @@ } *elapsed_time = (cmph_uint64)(e_time.tv_sec*1000000 + e_time.tv_usec); } - static inline void dummy_elapsed_time_in_useconds() + static inline void dummy_elapsed_time_in_useconds(cmph_uint64 * elapsed_time) { + (void) elapsed_time; } #endif #endif diff --git a/girepository/cmph/meson.build b/girepository/cmph/meson.build index 77c6e696..6b515241 100644 --- a/girepository/cmph/meson.build +++ b/girepository/cmph/meson.build @@ -32,7 +32,6 @@ cmph_deps = [ custom_c_args = cc.get_supported_arguments([ '-Wno-implicit-fallthrough', '-Wno-old-style-definition', - '-Wno-strict-prototypes', '-Wno-suggest-attribute=noreturn', '-Wno-type-limits', '-Wno-undef', @@ -53,7 +52,6 @@ cmph_dep = declare_dependency( custom_c_args = cc.get_supported_arguments([ '-Wno-old-style-definition', - '-Wno-strict-prototypes', '-Wno-type-limits', ]) cmph_test = executable('cmph-bdz-test', '../cmph-bdz-test.c', diff --git a/girepository/meson.build b/girepository/meson.build index e0f224e7..0261e1a5 100644 --- a/girepository/meson.build +++ b/girepository/meson.build @@ -1,7 +1,6 @@ subdir('cmph') custom_c_args = cc.get_supported_arguments([ - '-Wno-strict-prototypes', '-Wno-old-style-definition', '-Wno-cast-align', ]) -- cgit v1.2.1