OSDN Git Service

fix #45951
authorSHIRAKATA Kentaro <argrath@ub32.org>
Sat, 22 Oct 2022 13:44:42 +0000 (22:44 +0900)
committerSHIRAKATA Kentaro <argrath@ub32.org>
Sat, 22 Oct 2022 13:48:02 +0000 (22:48 +0900)
ChangeLog.j
include/tradstdc.h

index 1e3960a..a19adf4 100644 (file)
@@ -1,3 +1,6 @@
+       * \8e\9f\82Ì\96â\91è\82ð\8fC\90³
+         * ubuntu 22.04\82Å\83r\83\8b\83h\82ª\8e¸\94s\82·\82é (#45951)
+
 Mon Jan  3 2022  SHIRAKATA Kentaro  <argrath@ub32.org>
 
        * \8e\9f\82Ì\96â\91è\82ð\8fC\90³
index 979c7d3..50b1951 100644 (file)
@@ -429,6 +429,7 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */
 #if __GNUC__ >= 3
 #define UNUSED __attribute__((unused))
 #define NORETURN __attribute__((noreturn))
+#if !defined(__linux__) || defined(GCC_URWARN)
 /* 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*/
@@ -437,6 +438,7 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */
 #endif
 #endif
 #endif
+#endif
 
 #ifndef PRINTF_F
 #define PRINTF_F(f, v)