fix compilation
[libjh.git] / error.c
diff --git a/error.c b/error.c
index 9727253..3860944 100644 (file)
--- a/error.c
+++ b/error.c
@@ -1,5 +1,4 @@
 // Copyright (2013) Jann Horn <jann@thejh.net>
-// This code is licensed under the AGPLv3.
 
 // This file contains stuff for making error-handling easier.
 
@@ -8,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);