Files
macports-ports/textproc/gsed/files/patch-gsed-remove-pragmas.diff
Ken Cunningham 73fc4af719 gsed: fix build with old gccs
remove pragmas inside functions
2022-12-05 15:43:28 -08:00

14 lines
399 B
Diff

--- sed/compile.c.orig 2022-12-05 15:37:14.000000000 -0800
+++ sed/compile.c 2022-12-05 15:37:34.000000000 -0800
@@ -203,10 +203,7 @@
{
const char *msg = _(UNKNOWN_CMD);
char *unknown_cmd = xmalloc (strlen (msg));
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wformat-nonliteral"
sprintf (unknown_cmd, msg, ch);
-#pragma GCC diagnostic pop
bad_prog (unknown_cmd);
}