From 82852318e37fa7eddacc3dd162a2d16d3a7487b9 Mon Sep 17 00:00:00 2001 From: jsm Date: Wed, 8 Sep 1999 21:45:25 +0000 Subject: Add `__noreturn__' and `__unused__' attributes where appropriate to the games. This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Most noreturn attributes were previously added in bin/6144, with some others that were missed then in bin/8082. Previous `unused' attributes were covered in bin/6557, bin/8058 and other PRs (all these PRs have already been handled and closed). --- snake/snake/snake.c | 6 +++--- snake/snake/snake.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'snake') diff --git a/snake/snake/snake.c b/snake/snake/snake.c index 49507b59..cd1957e5 100644 --- a/snake/snake/snake.c +++ b/snake/snake/snake.c @@ -1,4 +1,4 @@ -/* $NetBSD: snake.c,v 1.10 1999/09/08 21:17:59 jsm Exp $ */ +/* $NetBSD: snake.c,v 1.11 1999/09/08 21:45:31 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) 1/7/94"; #else -__RCSID("$NetBSD: snake.c,v 1.10 1999/09/08 21:17:59 jsm Exp $"); +__RCSID("$NetBSD: snake.c,v 1.11 1999/09/08 21:45:31 jsm Exp $"); #endif #endif /* not lint */ @@ -905,7 +905,7 @@ winnings(won) void stop(dummy) - int dummy; + int dummy __attribute__((__unused__)); { signal(SIGINT, SIG_IGN); ll(); diff --git a/snake/snake/snake.h b/snake/snake/snake.h index 0199ff52..fd414f4d 100644 --- a/snake/snake/snake.h +++ b/snake/snake/snake.h @@ -1,4 +1,4 @@ -/* $NetBSD: snake.h,v 1.12 1999/09/08 21:18:00 jsm Exp $ */ +/* $NetBSD: snake.h,v 1.13 1999/09/08 21:45:31 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -99,7 +99,7 @@ void home __P((void)); void length __P((int)); void ll __P((void)); void logit __P((const char *)); -void mainloop __P((void)); +void mainloop __P((void)) __attribute__((__noreturn__)); void move __P((struct point *)); void nd __P((void)); void outch __P((int)); -- cgit v1.2.3-56-ge451