m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH fix build error on Darwin(macOS)] update src/format.c


From: Minsoo Choo
Subject: [PATCH fix build error on Darwin(macOS)] update src/format.c
Date: Sat, 19 Nov 2022 13:23:36 -0500

---
Dear maintainer,

GCC under version 4.6 are not widely used anymore. Users on systems that
use LLVM-Clang by default such as macOS have difficulties in building m4 
because of
this macro. I think we can delete these lines for better compatibility.

Regards,

 src/format.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/format.c b/src/format.c
index 40a10ebf..47450564 100644
--- a/src/format.c
+++ b/src/format.c
@@ -349,10 +349,8 @@ expand_format (struct obstack *obs, int argc, token_data 
**argv)
       *p = '\0';
 
       /* Our constructed format string in fstart is safe.  */
-#if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
 # pragma GCC diagnostic push
 # pragma GCC diagnostic ignored "-Wformat-nonliteral"
-#endif
 
       switch (datatype)
         {

base-commit: bb35e808e09f757fb67fbbc260401530dfb82d66
-- 
2.37.1 (Apple Git-137.1)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]