X-Git-Url: http://git.thejh.net/?p=libjh.git;a=blobdiff_plain;f=error.c;h=3860944220201c331b09a1204b427913b9d1e082;hp=9727253c9e20dca5a7ff219570e4dcebf27f988c;hb=6d9303c441fe1d8b473d24f40421d70058e2d2e5;hpb=66aa58de83d6cf9dd905b1857386e89409defb88;ds=sidebyside diff --git a/error.c b/error.c index 9727253..3860944 100644 --- a/error.c +++ b/error.c @@ -1,5 +1,4 @@ // Copyright (2013) Jann Horn -// 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);