mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Correct definition of ATTRIBUTE_NORETURN on Windows.
Only microsoft compiler, which can be correctly tested with #ifdef _MSC_VER) has __declspec(noreturn)
This commit is contained in:
@@ -161,7 +161,7 @@ marked as unlikely by the branch prediction mechanism. optimize a
|
|||||||
rarely invoked function for size instead for speed. */
|
rarely invoked function for size instead for speed. */
|
||||||
# define ATTRIBUTE_COLD __attribute__((cold))
|
# define ATTRIBUTE_COLD __attribute__((cold))
|
||||||
# endif
|
# endif
|
||||||
#elif defined _WIN32
|
#elif defined _MSC_VER
|
||||||
# define ATTRIBUTE_NORETURN __declspec(noreturn)
|
# define ATTRIBUTE_NORETURN __declspec(noreturn)
|
||||||
#else
|
#else
|
||||||
# define ATTRIBUTE_NORETURN /* empty */
|
# define ATTRIBUTE_NORETURN /* empty */
|
||||||
|
Reference in New Issue
Block a user