summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-16 00:18:40 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-16 07:43:19 +0100
commit4e639015436ec69fc161da2eb061073701483680 (patch)
tree94193d5b2c8185c860106f59f4c87a4f351ae88f
parent1e9c1fd4558f7777866ffa58ef5e26552106af0f (diff)
Quiet GCC warning about uninitialized variable
* ddb/db_command.h (db_error): Mark with attribute noreturn. * i386/i386/setjmp.h (_longjmp): Likewise.
-rw-r--r--ddb/db_command.h2
-rw-r--r--i386/i386/setjmp.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ddb/db_command.h b/ddb/db_command.h
index 5f0236a..634dd9d 100644
--- a/ddb/db_command.h
+++ b/ddb/db_command.h
@@ -43,7 +43,7 @@
extern void db_command_loop(void);
extern boolean_t db_option(const char *, int);
-extern void db_error(const char *); /* report error */
+extern void db_error(const char *) __attribute__ ((noreturn)); /* report error */
extern db_addr_t db_dot; /* current location */
extern db_addr_t db_last_addr; /* last explicit address typed */
diff --git a/i386/i386/setjmp.h b/i386/i386/setjmp.h
index 80f0f5f..930a9dd 100644
--- a/i386/i386/setjmp.h
+++ b/i386/i386/setjmp.h
@@ -35,6 +35,6 @@ typedef struct jmp_buf {
extern int _setjmp(jmp_buf_t*);
-extern void _longjmp(jmp_buf_t*, int);
+extern void _longjmp(jmp_buf_t*, int) __attribute__ ((noreturn));
#endif /* _I386_SETJMP_H_ */