Fix some compiler warnings, and suppress a few others for MSVC

This commit is contained in:
Chris Cannam
2023-12-15 20:32:57 +00:00
parent 97091aebe8
commit 91db97f8f5
6 changed files with 15 additions and 4 deletions

View File

@@ -45,8 +45,12 @@
# define R__
#endif
#ifdef _MSC_VER
#pragma warning(disable:4127; disable:4244; disable:4267)
#else
#pragma GCC diagnostic ignored "-Wconversion"
#pragma clang diagnostic ignored "-Wconversion"
#endif
#ifdef __clang__
# define RTENTRY__ __attribute__((annotate("realtime")))