WIN32: hint noreturn functions

apply __declspec(noreturn) compiler hints to functions that
do not return.

Change-Id: I3c6c4703c7235d1df3e21dccad5272ea4cddfd36
This commit is contained in:
Jeffrey Altman
2019-01-01 22:20:31 -05:00
committed by Nico Williams
parent 4d57ee72f3
commit bec4818943
7 changed files with 131 additions and 56 deletions

View File

@@ -55,10 +55,12 @@ static const char *const rcsid[] = { (const char *)rcsid, "@(#)" msg }
#ifndef KRB5_LIB
#ifdef _WIN32
#define KRB5_LIB_FUNCTION
#define KRB5_LIB_NORETURN_FUNCTION __declspec(noreturn)
#define KRB5_LIB_CALL __stdcall
#define KRB5_LIB_VARIABLE
#else
#define KRB5_LIB_FUNCTION
#define KRB5_LIB_NORETURN_FUNCTION
#define KRB5_LIB_CALL
#define KRB5_LIB_VARIABLE
#endif
@@ -70,10 +72,12 @@ static const char *const rcsid[] = { (const char *)rcsid, "@(#)" msg }
#ifndef ROKEN_LIB
#ifdef _WIN32
#define ROKEN_LIB_FUNCTION
#define ROKEN_LIB_NORETURN_FUNCTION __declspec(noreturn)
#define ROKEN_LIB_CALL __cdecl
#define ROKEN_LIB_VARIABLE
#else
#define ROKEN_LIB_FUNCTION
#define ROKEN_LIB_NORETURN_FUNCTION
#define ROKEN_LIB_CALL
#define ROKEN_LIB_VARIABLE
#endif
@@ -85,10 +89,12 @@ static const char *const rcsid[] = { (const char *)rcsid, "@(#)" msg }
#ifndef GSSAPI_LIB
#ifdef _WIN32
#define GSSAPI_LIB_FUNCTION
#define GSSAPI_LIB_NORETURN_FUNCTION __declspec(noreturn)
#define GSSAPI_LIB_CALL __stdcall
#define GSSAPI_LIB_VARIABLE
#else
#define GSSAPI_LIB_FUNCTION
#define GSSAPI_LIB_NORETURN_FUNCTION
#define GSSAPI_LIB_CALL
#define GSSAPI_LIB_VARIABLE
#endif