From ee5d62939516e03ca83ceb0e53fce2ac41cb29a1 Mon Sep 17 00:00:00 2001 From: cjee21 <77721854+cjee21@users.noreply.github.com> Date: Thu, 5 Feb 2026 21:10:19 +0800 Subject: [PATCH 1/3] Ensure warning suppression does not spread to other files/projects --- Source/ZenLib/Conf.h | 5 ----- Source/ZenLib/Ztring.cpp | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Source/ZenLib/Conf.h b/Source/ZenLib/Conf.h index 735aa33..c1980ba 100644 --- a/Source/ZenLib/Conf.h +++ b/Source/ZenLib/Conf.h @@ -173,11 +173,6 @@ #pragma warning(disable:4786) // MSVC6 doesn't like typenames longer than 255 chars (which generates an enormous amount of warnings). #endif -//MSVC2005 : "deprecated" warning (replacement functions are not in MinGW32 or Borland!) -#if defined(_MSC_VER) && _MSC_VER >= 1400 - #pragma warning(disable : 4996) -#endif - //*************************************************************************** // (Without Namespace) //*************************************************************************** diff --git a/Source/ZenLib/Ztring.cpp b/Source/ZenLib/Ztring.cpp index 87760bb..e1b80c8 100644 --- a/Source/ZenLib/Ztring.cpp +++ b/Source/ZenLib/Ztring.cpp @@ -49,6 +49,13 @@ using namespace std; //--------------------------------------------------------------------------- +//MSVC2005 : "deprecated" warning (replacement functions are not in MinGW32 or Borland!) +#if defined(_MSC_VER) && _MSC_VER >= 1400 + #pragma warning(disable : 4996) +#endif + +//--------------------------------------------------------------------------- + namespace ZenLib { From fd4bec81ec76cad756141596d405061ffd47cc05 Mon Sep 17 00:00:00 2001 From: cjee21 <77721854+cjee21@users.noreply.github.com> Date: Thu, 5 Feb 2026 21:36:10 +0800 Subject: [PATCH 2/3] Enable SDL Checks --- Project/MSVC2022/Library/ZenLib.vcxproj | 10 ++++++++++ Project/MSVC2026/Library/ZenLib.vcxproj | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/Project/MSVC2022/Library/ZenLib.vcxproj b/Project/MSVC2022/Library/ZenLib.vcxproj index fdca87a..d4aaabc 100644 --- a/Project/MSVC2022/Library/ZenLib.vcxproj +++ b/Project/MSVC2022/Library/ZenLib.vcxproj @@ -162,6 +162,7 @@ Disabled stdcpp20 Level3 + true @@ -174,6 +175,7 @@ Disabled stdcpp20 Level3 + true @@ -186,6 +188,7 @@ Disabled stdcpp20 Level3 + true @@ -198,6 +201,7 @@ Disabled stdcpp20 Level3 + true @@ -210,6 +214,7 @@ Disabled stdcpp20 Level3 + true @@ -224,6 +229,7 @@ Guard stdcpp20 Level3 + true @@ -237,6 +243,7 @@ Guard stdcpp20 Level3 + true @@ -252,6 +259,7 @@ true stdcpp20 Level3 + true @@ -267,6 +275,7 @@ true stdcpp20 Level3 + true @@ -281,6 +290,7 @@ true stdcpp20 Level3 + true diff --git a/Project/MSVC2026/Library/ZenLib.vcxproj b/Project/MSVC2026/Library/ZenLib.vcxproj index 211c8a6..f281ea4 100644 --- a/Project/MSVC2026/Library/ZenLib.vcxproj +++ b/Project/MSVC2026/Library/ZenLib.vcxproj @@ -162,6 +162,7 @@ Disabled stdcpp20 Level3 + true @@ -174,6 +175,7 @@ Disabled stdcpp20 Level3 + true @@ -186,6 +188,7 @@ Disabled stdcpp20 Level3 + true @@ -198,6 +201,7 @@ Disabled stdcpp20 Level3 + true @@ -210,6 +214,7 @@ Disabled stdcpp20 Level3 + true @@ -224,6 +229,7 @@ Guard stdcpp20 Level3 + true @@ -237,6 +243,7 @@ Guard stdcpp20 Level3 + true @@ -252,6 +259,7 @@ true stdcpp20 Level3 + true @@ -267,6 +275,7 @@ true stdcpp20 Level3 + true @@ -281,6 +290,7 @@ true stdcpp20 Level3 + true From 71d4421417d2be673d7696949b549333e1d57397 Mon Sep 17 00:00:00 2001 From: cjee21 <77721854+cjee21@users.noreply.github.com> Date: Thu, 5 Feb 2026 23:31:20 +0800 Subject: [PATCH 3/3] CI: Enable -Werror --- .github/workflows/ZenLib_Checks.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ZenLib_Checks.yml b/.github/workflows/ZenLib_Checks.yml index 1ed58bc..563b1d7 100644 --- a/.github/workflows/ZenLib_Checks.yml +++ b/.github/workflows/ZenLib_Checks.yml @@ -9,6 +9,8 @@ jobs: os: [ubuntu-latest, macos-latest] fail-fast: false runs-on: ${{ matrix.os }} + env: + CXXFLAGS: -Werror steps: - name: Checkout uses: actions/checkout@v5