From: Dmitry Kurtaev Date: Wed, 15 Jan 2025 17:28:44 +0000 (+0300) Subject: Workaround error G6E97C40B X-Git-Tag: 2.2.4~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9064a25f119620bf57e40fe4a75a583e84eafcc6;p=thirdparty%2Fzlib-ng.git Workaround error G6E97C40B Warning as an error with GCC from Uubuntu 24.04: ``` /home/runner/work/dotnet_riscv/dotnet_riscv/runtime/src/native/external/zlib-ng/arch/riscv/riscv_features.c(25,33): error G6E97C40B: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] [/home/runner/work/dotnet_riscv/dotnet_riscv/runtime/src/native/libs/build-native.proj] ``` --- diff --git a/arch/riscv/riscv_features.c b/arch/riscv/riscv_features.c index 62658af7..f9957d19 100644 --- a/arch/riscv/riscv_features.c +++ b/arch/riscv/riscv_features.c @@ -25,7 +25,7 @@ int Z_INTERNAL is_kernel_version_greater_or_equal_to_6_5() { return 0; } - if (major > 6 || major == 6 && minor >= 5) + if (major > 6 || (major == 6 && minor >= 5)) return 1; return 0; }