From adfc96810ef39b4eb645dc695e5bc38fdead20a8 Mon Sep 17 00:00:00 2001 From: Evan Pezent Date: Sun, 30 Jan 2022 10:08:55 -0800 Subject: [PATCH] remove unecessary msvc warning disables --- implot.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/implot.cpp b/implot.cpp index 81ea5ea..903d8cf 100644 --- a/implot.cpp +++ b/implot.cpp @@ -124,14 +124,7 @@ You can read releases logs https://github.com/epezent/implot/releases for more d // Visual Studio warnings #ifdef _MSC_VER -#pragma warning (disable: 4127) // condition expression is constant -#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen -#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later -#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types -#endif -#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). -#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). -#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen #endif // Clang/GCC warnings with -Weverything