n rather than nn, a way that does not involve shadowing.
* unexelf.c (unexec): Name an expression,
to avoid gcc -Wbad-function-cast warning.
+ Use a different way to cause a compilation error if anyone uses
+ n rather than nn, a way that does not involve shadowing.
* deps.mk (unexalpha.o): Remove; unused.
ElfW(Shdr) section = NEW_SECTION_H (n);
/* Cause a compilation error if anyone uses n instead of nn below. */
- struct {int a;} n;
- (void)n.a; /* Prevent `unused variable' warnings. */
+ #define n ((void) 0);
+ n /* Prevent 'macro "n" is not used' warnings. */
switch (section.sh_type)
{
}
break;
}
+
+ #undef n
}
/* Write out new_file, and free the buffers. */