Skip to content

Commit 752e969

Browse files
hubertfhubertf
authored andcommitted
Add __attribute__() to a variable. From PR 6557, after discussion with
Joseph S. Myers <jsm28@cam.ac.uk>
1 parent 6dd47fe commit 752e969

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

games/adventure/init.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: init.c,v 1.10 1998/08/29 20:19:56 hubertf Exp $ */
1+
/* $NetBSD: init.c,v 1.11 1999/02/10 12:38:54 hubertf Exp $ */
22

33
/*-
44
* Copyright (c) 1993
@@ -43,7 +43,7 @@
4343
#if 0
4444
static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 6/2/93";
4545
#else
46-
__RCSID("$NetBSD: init.c,v 1.10 1998/08/29 20:19:56 hubertf Exp $");
46+
__RCSID("$NetBSD: init.c,v 1.11 1999/02/10 12:38:54 hubertf Exp $");
4747
#endif
4848
#endif /* not lint */
4949

@@ -217,7 +217,7 @@ linkdata()
217217

218218
void
219219
trapdel(n) /* come here if he hits a del */
220-
int n;
220+
int n __attribute__((__unused__));
221221
{
222222
delhit = 1; /* main checks, treats as QUIT */
223223
signal(SIGINT, trapdel);/* catch subsequent DELs */

0 commit comments

Comments
 (0)