[CRT] Fix some inconsistent annotations in CRT headers.

This fixes about 5000 VS analysis warnings.
This commit is contained in:
Thomas Faber
2021-11-25 11:13:11 -05:00
parent f5c5426924
commit b72efb6ca8
3 changed files with 4 additions and 2 deletions

View File

@@ -474,6 +474,7 @@ _getcwd(
#include <string.h>
#endif
_Check_return_
__CRT_INLINE
intptr_t
__cdecl
@@ -492,6 +493,7 @@ _getcwd(
return ret;
}
_Check_return_
__CRT_INLINE
int
__cdecl

View File

@@ -1432,7 +1432,7 @@ extern "C" {
_Check_return_ long long __cdecl llabs(_In_ long long _j);
#pragma function(llabs)
#endif
__MINGW_EXTENSION __CRT_INLINE long long __cdecl llabs(_In_ long long _j) { return (_j >= 0 ? _j : -_j); }
__MINGW_EXTENSION _Check_return_ __CRT_INLINE long long __cdecl llabs(_In_ long long _j) { return (_j >= 0 ? _j : -_j); }
__MINGW_EXTENSION long long __cdecl strtoll(const char* __restrict__, char** __restrict, int);
__MINGW_EXTENSION unsigned long long __cdecl strtoull(const char* __restrict__, char** __restrict__, int);

View File

@@ -508,7 +508,7 @@ extern "C" {
_strupr_s_l(
_Inout_updates_z_(_Size) char *_Str,
_In_ size_t _Size,
_locale_t _Locale);
_In_opt_ _locale_t _Locale);
_Check_return_wat_
_CRTIMP