From 32b502af3cbee6931fad3129e139b0feac41ecf4 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 25 Oct 2019 17:01:05 -0400 Subject: [PATCH] Fix -Wstrict-prototypes warnings Change-Id: I2e7776e2387df40026641683bf2f4e90995f88ce Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/2258 Tested-by: jenkins Reviewed-by: Francis Deslauriers --- configure.ac | 1 - src/ctf-writer/event-class.h | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b791d005..93495095 100644 --- a/configure.ac +++ b/configure.ac @@ -684,7 +684,6 @@ AX_COMPILER_FLAGS( -Wno-double-promotion dnl -Wno-suggest-attribute=noreturn dnl -Wno-cast-align dnl - -Wno-strict-prototypes dnl ]) # CFLAGS from AX_COMPILER_FLAGS. diff --git a/src/ctf-writer/event-class.h b/src/ctf-writer/event-class.h index 3c44b57c..ca7ec670 100644 --- a/src/ctf-writer/event-class.h +++ b/src/ctf-writer/event-class.h @@ -74,7 +74,8 @@ struct bt_ctf_stream_class_common *bt_ctf_event_class_common_borrow_stream_class return (void *) bt_ctf_object_borrow_parent(&event_class->base); } -typedef struct bt_ctf_field_type_common *(*bt_ctf_field_type_structure_create_func)(); +typedef struct bt_ctf_field_type_common * + (*bt_ctf_field_type_structure_create_func)(void); BT_HIDDEN int bt_ctf_event_class_common_initialize(struct bt_ctf_event_class_common *event_class, -- 2.34.1