From: Guy Harris Date: Wed, 6 Sep 2017 18:02:15 +0000 (-0700) Subject: MSVC doesn't allow __declspec(noreturn) to be applied to function pointers. X-Git-Tag: tcpdump-4.99-bp~1988 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/c724af922246b23fe55947b4033abcc853b4dd47 MSVC doesn't allow __declspec(noreturn) to be applied to function pointers. --- diff --git a/funcattrs.h b/funcattrs.h index f06b444c..cb0678ea 100644 --- a/funcattrs.h +++ b/funcattrs.h @@ -92,9 +92,11 @@ #elif defined(_MSC_VER) /* * MSVC. + * It doesn't allow __declspec(noreturn) to be applied to function + * pointers. */ #define NORETURN __declspec(noreturn) - #define NORETURN_FUNCPTR __declspec(noreturn) + #define NORETURN_FUNCPTR #else #define NORETURN #define NORETURN_FUNCPTR