// Copyright (2013) Jann Horn <jann@thejh.net>
-// This code is licensed under the AGPLv3.
// This file contains stuff for making error-handling easier.
#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);