Mark usage() method as noreturn to avoid warning on BSD
Warning from OpenBSD/NetBSD: CC iodine.c iodine.c: In function 'main': iodine.c:141:6: warning: 'nameservaddr_len' may be used uninitialized in this function
This commit is contained in:
parent
c1b24abf3a
commit
bacb69e4f0
|
@ -57,6 +57,12 @@ sighandler(int sig)
|
|||
client_stop();
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
/* mark as no return to help some compilers to avoid warnings
|
||||
* about use of uninitialized variables */
|
||||
static void usage() __attribute__((noreturn));
|
||||
#endif
|
||||
|
||||
static void
|
||||
usage() {
|
||||
extern char *__progname;
|
||||
|
|
Loading…
Reference in New Issue