Reassure compiler ("control may reach end of non-void function")
authorJohn Boyle <johnthescavenger@gmail.com>
Thu, 8 Jun 2017 16:05:38 +0000 (09:05 -0700)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 9 Jun 2017 02:50:48 +0000 (22:50 -0400)
advent.h

index 3e208158b9594eb1a566872f2f22e7369b8fccc3..e33d66aef6263b7d601daf29adb4219f74126b9a 100644 (file)
--- a/advent.h
+++ b/advent.h
@@ -120,7 +120,7 @@ extern long ATDWRF(long);
 extern long SETBIT(long);
 extern bool TSTBIT(long,int);
 extern long RNDVOC(long,long);
-extern void BUG(long);
+extern void BUG(long) __attribute__((noreturn));
 extern void MAPLIN(FILE *);
 extern void TYPE(void);
 extern void MPINIT(void);