Ver Fonte

Fix a "noreturn" compiler warning

Richard Laager há 15 anos atrás
pai
commit
1f31ccc4be
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      src/docsis.c

+ 4 - 0
src/docsis.c

@@ -133,6 +133,10 @@ add_cmts_mic (unsigned char *tlvbuf, unsigned int tlvbuflen,
   return (tlvbuflen + 18);
 }
 
+#ifdef __GNUC__
+static void usage (char *prog_name) __attribute__((__noreturn__));
+#endif
+
 static void
 usage (char *prog_name)
 {