From 8876e7a818f8501d72555e7179bccd4cd15fd265 Mon Sep 17 00:00:00 2001 From: Steffen Pankratz Date: Tue, 17 Feb 2026 19:38:24 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20compiler=20warning:=20ignoring=20retu?= =?UTF-8?q?rn=20value=20of=20=E2=80=98realpath=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Steffen Pankratz --- src/unshield.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unshield.c b/src/unshield.c index 9e0f809..6f2a3db 100644 --- a/src/unshield.c +++ b/src/unshield.c @@ -510,9 +510,12 @@ static bool extract_file(Unshield* unshield, const char* prefix, int index) #endif #ifdef __GLIBC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-result" /* use GNU extension to return non-existing files to real_output_directory */ realpath(output_directory, real_output_directory); realpath(filename, real_filename); +#pragma GCC diagnostic pop if (real_filename == NULL || strncmp(real_filename, real_output_directory, strlen(real_output_directory)) != 0) From 7429bd7128d597cde0206f659d9a7c258bf75a37 Mon Sep 17 00:00:00 2001 From: Steffen Pankratz Date: Tue, 17 Feb 2026 19:48:26 +0100 Subject: [PATCH 2/2] CI pipeline: Enable '-Werror' Signed-off-by: Steffen Pankratz --- .github/workflows/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 230ee47..068124a 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -54,7 +54,7 @@ jobs: ${{matrix.platform.msys-env}}-zlib - name: Configure CMake - run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -DBUILD_STATIC=${{matrix.build-static}} -DBUILD_TESTING=ON -DCMAKE_C_FLAGS="-Wall" + run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -DBUILD_STATIC=${{matrix.build-static}} -DBUILD_TESTING=ON -DCMAKE_C_FLAGS="-Wall -Werror" - name: Build run: cmake --build build