Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

@@ -11,10 +11,14 @@
 
 /*
  * Copyright (c) 2018 by Chelsio Communications, Inc.
  */
 
+/*
+ * Copyright 2019 Joyent, Inc.
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <stropts.h>
 #include <sys/types.h>

@@ -83,11 +87,11 @@
             "\tdevlog                              show device log\n"
             "\tloadfw <FW image>                   Flash the FW image\n");
         exit(fp == stderr ? 1 : 0);
 }
 
-static void
+__NORETURN static void
 err(int code, const char *fmt, ...)
 {
         va_list ap;
         int e = errno;