[gobject-introspection] Add missing (void) arguments to comply with -Wstrict-prototypes



commit c6d9442c2d93d43248cbb455d0badad53083fa81
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Thu Oct 6 04:04:51 2022 +0200

    Add missing (void) arguments to comply with -Wstrict-prototypes

 girepository/cmph/fch.c | 2 +-
 tests/scanner/foo.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/girepository/cmph/fch.c b/girepository/cmph/fch.c
index 33b959e24..f12b6fcd2 100644
--- a/girepository/cmph/fch.c
+++ b/girepository/cmph/fch.c
@@ -21,7 +21,7 @@ static cmph_uint8 check_for_collisions_h2(fch_config_data_t *fch, fch_buckets_t
 static void permut(cmph_uint32 * vector, cmph_uint32 n);
 static cmph_uint8 searching(fch_config_data_t *fch, fch_buckets_t *buckets, cmph_uint32 *sorted_indexes);
 
-fch_config_data_t *fch_config_new()
+fch_config_data_t *fch_config_new(void)
 {
        fch_config_data_t *fch;
        fch = (fch_config_data_t *)malloc(sizeof(fch_config_data_t));
diff --git a/tests/scanner/foo.c b/tests/scanner/foo.c
index cd45362de..1ca9cb4cb 100644
--- a/tests/scanner/foo.c
+++ b/tests/scanner/foo.c
@@ -343,7 +343,7 @@ regress_foo_subobject_init (RegressFooSubobject *object)
  * Return value: (type RegressFooSubobject) (transfer none): The global #RegressFooSubobject
  */
 RegressFooObject *
-regress_foo_object_get_default ()
+regress_foo_object_get_default (void)
 {
   return NULL;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]