]> git.notmuchmail.org Git - notmuch/blobdiff - util/error_util.h
Annotate internal_error with the attribute noreturn
[notmuch] / util / error_util.h
index bb158220a3d8d4c8cc09e1f7e9af731135f1f160..17c8727d13b2a743dd3afd9642026f3a73b2b1ea 100644 (file)
 
 #include <talloc.h>
 
+#include "function-attributes.h"
+
 /* There's no point in continuing when we've detected that we've done
  * something wrong internally (as opposed to the user passing in a
  * bogus value).
  *
  * Note that PRINTF_ATTRIBUTE comes from talloc.h
  */
-int
-_internal_error (const char *format, ...) PRINTF_ATTRIBUTE (1, 2);
+void
+_internal_error (const char *format, ...) PRINTF_ATTRIBUTE (1, 2) NORETURN_ATTRIBUTE;
 
 /* There's no point in continuing when we've detected that we've done
  * something wrong internally (as opposed to the user passing in a