summaryrefslogtreecommitdiff
path: root/rpcapd/rpcapd.c
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2018-03-28 15:32:06 -0700
committerGuy Harris <guy@alum.mit.edu>2018-03-28 15:32:06 -0700
commitc6fde3d1975ecda5563c39712ff389e78e50b895 (patch)
tree69ef031108c6cc1a38144859da1ba74980538651 /rpcapd/rpcapd.c
parentfd00db6f5f21d4961b62fbdd79944135b0b2a6bb (diff)
downloadlibpcap-c6fde3d1975ecda5563c39712ff389e78e50b895.tar.gz
Add -Wmissing-noreturn to compiler warnings and fix all fixable warnings.
Also suppress the one non-fixable warning: build/scanner.c:5020:1: warning: function 'yy_fatal_error' could be declared with attribute 'noreturn' [-Wmissing-noreturn] Signed-off-by: Joerg Mayer <jmayer@loplof.de>
Diffstat (limited to 'rpcapd/rpcapd.c')
-rwxr-xr-xrpcapd/rpcapd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpcapd/rpcapd.c b/rpcapd/rpcapd.c
index d3594081..b7e026bc 100755
--- a/rpcapd/rpcapd.c
+++ b/rpcapd/rpcapd.c
@@ -459,7 +459,7 @@ void main_startup(void)
- when we're running in console and are terminated with ^C;
- on UN*X, when we're terminated with SIGTERM.
*/
-static void main_terminate(int sign)
+static PCAP_NORETURN void main_terminate(int sign)
{
SOCK_ASSERT(PROGRAM_NAME " is closing.\n", 1);