Closed
Description
Running clang-tidy with a reasonably "default" (based on llvm) set of checks on the clear renderer sample gives this:
D:/dev/proj/build/Windows/_deps/sdl3-src/include\SDL3/SDL_stdinc.h:5966:7: error: 'strdup' redeclared without 'dllimport' attribute: previous 'dllimport' ignored [clang-diagnostic-inconsistent-dllimport]
5966 | char *strdup(const char *str);
| ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt\string.h:532:28: note: previous declaration is here
532 | _ACRTIMP char* __cdecl strdup(
| ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt\string.h:532:5: note: previous attribute is here
532 | _ACRTIMP char* __cdecl strdup(
| ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt\corecrt.h:136:37: note: expanded from macro '_ACRTIMP'
136 | #define _ACRTIMP __declspec(dllimport)
| ^
Metadata
Metadata
Assignees
Labels
No labels