suppress compiler warning differently
This commit is contained in:
@@ -389,6 +389,11 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */
|
|||||||
#undef signed
|
#undef signed
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#define UNUSED __attribute__((unused))
|
||||||
|
#define NORETURN __attribute__((noreturn))
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Allow gcc2 to check parameters of printf-like calls with -Wformat;
|
* Allow gcc2 to check parameters of printf-like calls with -Wformat;
|
||||||
* append this to a prototype declaration (see pline() in extern.h).
|
* append this to a prototype declaration (see pline() in extern.h).
|
||||||
|
|||||||
+1
-3
@@ -53,7 +53,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(UNIX) && !defined(LINT) && !defined(GCC_WARN)
|
#if defined(UNIX) && !defined(LINT) && !defined(GCC_WARN)
|
||||||
static const char SCCS_Id[] = "@(#)makedefs.c\t3.6\t2018/03/02";
|
static const char SCCS_Id[] UNUSED = "@(#)makedefs.c\t3.6\t2018/03/02";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* names of files to be generated */
|
/* names of files to be generated */
|
||||||
@@ -298,8 +298,6 @@ link_sanity_check()
|
|||||||
monst_init();
|
monst_init();
|
||||||
objects_init();
|
objects_init();
|
||||||
|
|
||||||
/* Quiet unused warning */
|
|
||||||
(void) SCCS_Id;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user