summarylogtreecommitdiffstats
path: root/warn_unused.patch
blob: aa9313e09116958aaf9ef21541ce8747e3e66e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/tradstdc.h b/include/tradstdc.h
index 12a0d4a..710a89d 100644
--- a/include/tradstdc.h
+++ b/include/tradstdc.h
@@ -431,7 +431,7 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */
 #define NORETURN __attribute__((noreturn))
 /* disable gcc's __attribute__((__warn_unused_result__)) since explicitly
    discarding the result by casting to (void) is not accepted as a 'use' */
-#define __warn_unused_result__ /*empty*/
+#define __warn_unused_result__ __unused__
 #define warn_unused_result /*empty*/
 #endif
 #endif