]> The Tcpdump Group git mirrors - libpcap/commitdiff
Decorate the declaration, not the later definition, with PCAP_NORETURN.
authorGuy Harris <[email protected]>
Sun, 1 Apr 2018 01:36:36 +0000 (18:36 -0700)
committerGuy Harris <[email protected]>
Sun, 1 Apr 2018 01:38:13 +0000 (18:38 -0700)
testprogs/can_set_rfmon_test.c
testprogs/reactivatetest.c

index ad0cc5cd0816bb207eb25103d854491cfa9a6b5d..c6fe103735c96d2ee1018a6af79126d1a7d98c1f 100644 (file)
@@ -39,7 +39,7 @@ The Regents of the University of California.  All rights reserved.\n";
 static const char *program_name;
 
 /* Forwards */
 static const char *program_name;
 
 /* Forwards */
-static void error(const char *, ...);
+static void PCAP_NORETURN error(const char *, ...);
 
 int
 main(int argc, char **argv)
 
 int
 main(int argc, char **argv)
@@ -77,7 +77,7 @@ main(int argc, char **argv)
 }
 
 /* VARARGS */
 }
 
 /* VARARGS */
-static void PCAP_NORETURN
+static void
 error(const char *fmt, ...)
 {
        va_list ap;
 error(const char *fmt, ...)
 {
        va_list ap;
index dfe789a92717cd4519753b31a42e8f16b9bdaa27..168b809b323230faf306cbaafc315b81017cec42 100644 (file)
@@ -36,7 +36,7 @@ The Regents of the University of California.  All rights reserved.\n";
 #include "pcap/funcattrs.h"
 
 /* Forwards */
 #include "pcap/funcattrs.h"
 
 /* Forwards */
-static void error(const char *, ...);
+static void PCAP_NORETURN error(const char *, ...);
 
 int
 main(void)
 
 int
 main(void)
@@ -69,7 +69,7 @@ main(void)
 }
 
 /* VARARGS */
 }
 
 /* VARARGS */
-static void PCAP_NORETURN
+static void
 error(const char *fmt, ...)
 {
        va_list ap;
 error(const char *fmt, ...)
 {
        va_list ap;