./src/main.c: In function 'main':
./src/main.c:323:25: warning: implicit declaration of function 'strndup' [-Wimplicit-function-declaration]
char *const triple = strndup(name, dash - name);
^~~~~~~
./src/main.c:323:25: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
following patch fixes it
diff --git a/src/main.c b/src/main.c
index e1526d87..dc6ba84b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2,6 +2,7 @@
* This file is part of cparser.
* Copyright (C) 2012 Matthias Braun <matze@braunis.de>
*/
+#define _GNU_SOURCE
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
following patch fixes it