[PATCH v1 2/2] eppic: Fix a warning about redefining ERRMSG

Petr Tesarik petr at tesarici.cz
Sat Apr 15 09:02:13 PDT 2023


The macro is redefined on purpose, so let's #undef it first to
silence the warning.

Signed-off-by: Petr Tesarik <petr at tesarici.cz>
---
 extension_eppic.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/extension_eppic.h b/extension_eppic.h
index 24189ba..08f1db0 100644
--- a/extension_eppic.h
+++ b/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.40.0




More information about the kexec mailing list