summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-29 18:28:26 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-10-29 18:28:26 (GMT)
commitda077cfcc19b21ebc994e6d1fb5ab85c99f9cc72 (patch)
tree25f280d3777cfeb864408623e4b305ebb65556b1
parent11dce68a9b3684cbaaa9aff0a18e62bbe7e2f2e0 (diff)
downloadeeshow-da077cfcc19b21ebc994e6d1fb5ab85c99f9cc72.zip
eeshow-da077cfcc19b21ebc994e6d1fb5ab85c99f9cc72.tar.gz
eeshow-da077cfcc19b21ebc994e6d1fb5ab85c99f9cc72.tar.bz2
main.h (usage): add __attribute__((noreturn))
This way, older versions of gcc will not complain about eetest's "main" ending with a call to "usage".
-rw-r--r--main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.h b/main.h
index 6ff02cf..f46c7fc 100644
--- a/main.h
+++ b/main.h
@@ -13,6 +13,6 @@
#ifndef MAIN_H
#define MAIN_H
-void usage(const char *name);
+void __attribute__((noreturn)) usage(const char *name);
#endif /* !MAIN_H */