summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2018-12-20 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2018-12-20 17:34:38 +0100
commit698c78f50e5e6ea638bea8f10398bdfe8691ac48 (patch)
treebba1485f6986d7fbe9297d3fda7e20f67e915ab2
parenta51a872633b0c5f46e6ebc295c645823a9d0ae55 (diff)
downloadgobject-introspection-698c78f50e5e6ea638bea8f10398bdfe8691ac48.tar.gz
Cleanup strict-prototypes warnings
-rw-r--r--girepository/cmph/cmph_time.h6
-rw-r--r--girepository/cmph/meson.build2
-rw-r--r--girepository/meson.build1
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',
])