add JH_ATTR_NORETURN
[libjh.git] / error.c
diff --git a/error.c b/error.c
index 91ee45e..3860944 100644 (file)
--- a/error.c
+++ b/error.c
@@ -7,7 +7,7 @@
 #define GENERIC_ERROR \
   "unexpected generic failure of some kind"
 
-PUBLIC_FN void xperror(const char *s, int show_errno) {
+PUBLIC_FN void xperror(const char *s, int show_errno) JH_ATTR_NORETURN {
   if (!s) s=GENERIC_ERROR;
   if (show_errno) {
     perror(s);