summaryrefslogtreecommitdiff
path: root/games-roguelike/nethack/files/nethack-5.0.0-no-define-warn-unused-result.patch
blob: 78d5520d456255956626b753c2b007208eeb36b0 (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 a202c0c7b..d4b3f9b3f 100644
--- a/include/tradstdc.h
+++ b/include/tradstdc.h
@@ -441,7 +441,7 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */
 /* #pragma message is available */
 #define NH_PRAGMA_MESSAGE 1
 #endif  /* __GNUC__ greater than or equal to 5 */
-#if (!defined(__linux__) && !defined(MACOS)) || defined(GCC_URWARN)
+#if 0
 /* 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*/