kexec-tools/makedumpfile-1.7.2-0007-2-2-eppic-Fix-a-warning-about-redefining-ERRMS.patch

29 lines
818 B
Diff
Raw Normal View History

From 8e8b8814be1a9f8b5b66ca06a602041b05c923df Mon Sep 17 00:00:00 2001
From: Petr Tesarik <petr@tesarici.cz>
Date: Sat, 15 Apr 2023 18:02:13 +0200
Subject: [PATCH 7/7] [PATCH 2/2] eppic: Fix a warning about redefining ERRMSG
The macro is redefined on purpose, so let's #undef it first to
silence the warning.
Signed-off-by: Petr Tesarik <petr@tesarici.cz>
---
extension_eppic.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/makedumpfile-1.7.2/extension_eppic.h b/makedumpfile-1.7.2/extension_eppic.h
index 24189ba..08f1db0 100644
--- a/makedumpfile-1.7.2/extension_eppic.h
+++ b/makedumpfile-1.7.2/extension_eppic.h
@@ -71,6 +71,7 @@ typedef TYPE_S {
ull rtype; /* type_t a reference refers too */
} type_t;
+#undef ERRMSG
#define ERRMSG(x...) \
do { \
fprintf(stderr, __FUNCTION__); \
--
2.33.1