X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmi-lttng.c;h=fc22e4e0cabeb34f9f75b78607d79d0b5337f7f2;hb=14b88ccfe8d51fe8a19e525d8b6a5e4614eccb46;hp=7662c110619fc214edb6387a7aaa92dfcea6890c;hpb=bf239d4cf83c083459c7672ac8a1965108bacca6;p=lttng-tools.git diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c index 7662c1106..fc22e4e0c 100644 --- a/src/common/mi-lttng.c +++ b/src/common/mi-lttng.c @@ -16,10 +16,8 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE #define _LGPL_SOURCE -#include -#include +#include #include #include "mi-lttng.h" @@ -399,6 +397,7 @@ const char *mi_lttng_domaintype_string(enum lttng_domain_type value) default: /* Should not have an unknown domain */ assert(0); + return NULL; } } @@ -415,6 +414,7 @@ const char *mi_lttng_buffertype_string(enum lttng_buffer_type value) default: /* Should not have an unknow buffer type */ assert(0); + return NULL; } }