diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2017-08-31 08:20:29 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-08-31 09:30:55 +0300 |
commit | 4386ee8ccc2efa7ba91061b5bd5a37bcf35f91d2 (patch) | |
tree | 5988fbef957aef82e402ed155a8b8624bae836cf /sql/mysqld.h | |
parent | 03a8eaa072c2f3f6b7f7c3c9882614dc5c40bd78 (diff) | |
download | mariadb-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/mysqld.h')
-rw-r--r-- | sql/mysqld.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysqld.h b/sql/mysqld.h index bff2f010b93..912fe3696ae 100644 --- a/sql/mysqld.h +++ b/sql/mysqld.h @@ -708,7 +708,7 @@ enum enum_query_type /* query_id */ extern query_id_t global_query_id; -void unireg_end(void) __attribute__((noreturn)); +ATTRIBUTE_NORETURN void unireg_end(void); /* increment query_id and return it. */ inline __attribute__((warn_unused_result)) query_id_t next_query_id() |