This warning is part of '-Wextra' in GCC.
Change-Id: Ie6170cb06900e93011ddedc102a9964c63edad55
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7558
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
dnl
dnl Ref: https://github.com/swig/swig/issues/1259
-Wno-cast-function-type dnl
- -Wno-missing-field-initializers dnl
-Wno-maybe-uninitialized dnl
])
# Python 3.11 + gcc 12.2.0 gave warnings of this kind in Python.h.
WARN_CFLAGS += -Wno-redundant-decls
+# For SWIG generated code
+WARN_CFLAGS += -Wno-missing-field-initializers
+
BUILD_FLAGS=CC="$(CC)" \
CFLAGS="$(GLIB_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(WARN_CFLAGS)" \
CPPFLAGS="$(AM_CPPFLAGS) $(CPPFLAGS) -I$(srcdir)/bt2" \
# produces.
libctf_parser_la_CXXFLAGS = $(AM_CXXFLAGS) \
-Wno-unused-function \
- -Wno-null-dereference
+ -Wno-null-dereference \
+ -Wno-missing-field-initializers
libctf_ast_la_SOURCES = \
visitor-generate-ir.cpp \
{
int ret = 0;
uint64_t i;
- struct ctx ctx = {0};
+ struct ctx ctx = {};
ctx.self_comp = self_comp;
ctx.tc = tc;
const bt_value *input_type_value;
const bt_value *input_value;
double weight = 0;
- struct bt_common_lttng_live_url_parts parts = {0};
+ struct bt_common_lttng_live_url_parts parts = {};
/* Used by the logging macros */
__attribute__((unused)) bt_self_component *self_comp = NULL;
char error_buf[256] = {0};
bt_self_component *self_comp = viewer_connection->self_comp;
bt_self_component_class *self_comp_class = viewer_connection->self_comp_class;
- struct bt_common_lttng_live_url_parts lttng_live_url_parts = {0};
+ struct bt_common_lttng_live_url_parts lttng_live_url_parts = {};
int ret = -1;
const char *path = viewer_connection->url->str;