diff options
| author | joerg <joerg@NetBSD.org> | 2013-09-13 17:38:17 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2013-09-13 17:38:17 +0000 |
| commit | 8b9f7d8bbc8b4fd6987564b55bbf326c169e9c19 (patch) | |
| tree | a8555cee042f46c64b9755fd88494eb023b489d1 /external | |
| parent | 1c72f4e7fb4aae1bd693bdd5f3a1c37242c32ba8 (diff) | |
Mark yysccsid as used when compiling with GCC 3.1 or compatible.
Diffstat (limited to 'external')
| -rw-r--r-- | external/bsd/byacc/dist/skeleton.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/external/bsd/byacc/dist/skeleton.c b/external/bsd/byacc/dist/skeleton.c index 00aa9bc6d89..2df081bc881 100644 --- a/external/bsd/byacc/dist/skeleton.c +++ b/external/bsd/byacc/dist/skeleton.c @@ -1,11 +1,11 @@ -/* $NetBSD: skeleton.c,v 1.11 2013/04/06 14:52:24 christos Exp $ */ +/* $NetBSD: skeleton.c,v 1.12 2013/09/13 17:38:17 joerg Exp $ */ /* Id: skeleton.c,v 1.32 2013/03/04 23:19:39 tom Exp */ #include "defs.h" #include <sys/cdefs.h> -__RCSID("$NetBSD: skeleton.c,v 1.11 2013/04/06 14:52:24 christos Exp $"); +__RCSID("$NetBSD: skeleton.c,v 1.12 2013/09/13 17:38:17 joerg Exp $"); /* The definition of yysccsid in the banner should be replaced with */ /* a #pragma ident directive if the target C compiler supports */ @@ -22,6 +22,9 @@ __RCSID("$NetBSD: skeleton.c,v 1.11 2013/04/06 14:52:24 christos Exp $"); const char *const banner[] = { "#ifndef lint", + "#if __GNUC__ - 0 >= 4 || (__GNUC__ 0 == 3 && __GNUC_MINOR__ >= 1)", + "__attribute__((__used__))", + "#endif", "static const char yysccsid[] = \"@(#)yaccpar 1.9 (Berkeley) 02/21/93\";", "#endif", "", |
