X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmi-lttng.c;h=fc22e4e0cabeb34f9f75b78607d79d0b5337f7f2;hp=7662c110619fc214edb6387a7aaa92dfcea6890c;hb=69f60d21c627ad2fcae6d25fecf91e639c6ded33;hpb=bf239d4cf83c083459c7672ac8a1965108bacca6 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; } }