summaryrefslogtreecommitdiff
path: root/sql/init.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-08-31 08:20:29 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2017-08-31 09:30:55 +0300
commit4386ee8ccc2efa7ba91061b5bd5a37bcf35f91d2 (patch)
tree5988fbef957aef82e402ed155a8b8624bae836cf /sql/init.h
parent03a8eaa072c2f3f6b7f7c3c9882614dc5c40bd78 (diff)
downloadmariadb-git-4386ee8ccc2efa7ba91061b5bd5a37bcf35f91d2.tar.gz
Add ATTRIBUTE_NORETURN and ATTRIBUTE_COLD
ATTRIBUTE_NORETURN is supported on all platforms (MSVS and GCC-like). It declares that a function will not return; instead, the thread or the whole process will terminate. ATTRIBUTE_COLD is supported starting with GCC 4.3. It declares that a function is supposed to be executed rarely. Rarely used error-handling functions and functions that emit messages to the error log should be tagged such.
Diffstat (limited to 'sql/init.h')
-rw-r--r--sql/init.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/init.h b/sql/init.h
index 88cd8e6e178..af2621e5e70 100644
--- a/sql/init.h
+++ b/sql/init.h
@@ -19,6 +19,6 @@
#include "my_global.h" /* ulong */
void unireg_init(ulong options);
-void unireg_end(void) __attribute__((noreturn));
+ATTRIBUTE_NORETURN void unireg_end(void);
#endif /* INIT_INCLUDED */