[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Warning fix for gcc-2.96
From: |
Pavel Roskin |
Subject: |
Warning fix for gcc-2.96 |
Date: |
Mon, 14 May 2001 16:23:51 -0400 (EDT) |
Hello!
gcc-2.96 from RedHat 7.0 emits a warning for almost every file when I
compile the CVS version of GRUB:
shared.h:249:43: warning: nothing can be pasted after this token
My understanding it that '##' is useless because the preprocessor cannot
"glue" (in its own words, "paste") the colon after the result of the macro
expansion for EXT_C. Fortunately, we don't even need it.
ChangeLog:
* stage2/shared.h: Remove meaningless `##' in the definition
of ENTRY.
__________________________________
Index: stage2/shared.h
--- stage2/shared.h
+++ stage2/shared.h
@@ -246,7 +246,7 @@
* command.
*/
-#define ENTRY(x) .globl EXT_C(x) ; EXT_C(x) ## :
+#define ENTRY(x) .globl EXT_C(x) ; EXT_C(x):
#define VARIABLE(x) ENTRY(x)
__________________________________
Regards,
Pavel Roskin
- Warning fix for gcc-2.96,
Pavel Roskin <=