m4_define([WARN_FLAGS_COMMON_LIST], [ dnl
-Wall dnl
-Wnull-dereference dnl
+ -Wundef dnl
dnl We currently get this warning when building with Clang:
dnl
dnl /usr/include/setjmp.h:54:12: error: declaration of built-in function '__sigsetjmp' requires the declaration of the 'jmp_buf' type, commonly provided in the header <setjmp.h>. [-Werror,-Wincomplete-setjmp-declaration]
static int nr_probes;
static int probes_capacity;
-#if HAVE_KMOD
+#ifdef HAVE_KMOD
#include <libkmod.h>
/**
int ust_consumer_send_channel_to_ust(struct ust_app *app,
struct ust_app_session *ua_sess, struct ust_app_channel *channel);
-#if HAVE_LIBLTTNG_UST_CTL
+#ifdef HAVE_LIBLTTNG_UST_CTL
int ust_consumer_metadata_request(struct consumer_socket *sock);
#else
static inline
{ (char *) "need_reschedule", CONTEXT_NEED_RESCHEDULE },
{ (char *) "migratable", CONTEXT_MIGRATABLE },
{ (char *) "callstack-kernel", CONTEXT_CALLSTACK_KERNEL },
-#if HAVE_MODULES_USERSPACE_CALLSTACK_CONTEXT
+#ifdef HAVE_MODULES_USERSPACE_CALLSTACK_CONTEXT
{ (char *) "callstack-user", CONTEXT_CALLSTACK_USER },
#endif
{ (char *) "cgroup_ns", CONTEXT_CGROUP_NS },
#include "poll.h"
-#if HAVE_EPOLL
+#ifdef HAVE_EPOLL
#include <fcntl.h>
#include <limits.h>
}
#endif /* HAVE_FLS */
-#if HAVE_MEMRCHR
+#ifdef HAVE_MEMRCHR
static inline
void *lttng_memrchr(const void *s, int c, size_t n)
{
#include "utils.h"
-#if HAVE_EPOLL
+#ifdef HAVE_EPOLL
struct create_args {
struct lttng_poll_event *events;
#define TRACEPOINT_DEFINE
-#if TEST_DYNAMIC_LINKAGE
+#ifdef TEST_DYNAMIC_LINKAGE
#define TRACEPOINT_PROBE_DYNAMIC_LINKAGE
#endif