testing/ltp: silence -Wshift-count-overflow on -Werror builds

The LTP open_posix_testsuite header timespec.h has, since 2019:

  #define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1)

When time_t is 64 bits (the default after sched/remove-system-time64),
the shift reaches the sign bit of the underlying type and toolchains
emit -Wshift-count-overflow, which the LTP build promotes to a hard
error via -Werror.  This breaks rv-virt/citest and rv-virt/citest64
on CI.

The diagnostic is benign here (TIME_T_MAX itself is correct) and the
defect is in upstream LTP, so disable the warning alongside the other
'should be removed in the future' relaxations until upstream is fixed.

Signed-off-by: xiaoxiang781216 <xiaoxiang781216@gmail.com>
This commit is contained in:
xiaoxiang781216 2026-05-13 18:36:26 +08:00 committed by Mateusz Szafoni
parent 5d15d97418
commit 21b28a4126

View file

@ -238,6 +238,7 @@ CFLAGS += -Wno-int-conversion -Wno-shadow
# Should be removed if possible in the future
CFLAGS += -Wno-incompatible-pointer-types -Wno-overflow -Wno-int-to-pointer-cast
CFLAGS += -Wno-shift-count-overflow
# Specific compilation errors ignored in MacOS platform
ifneq ($(CONFIG_HOST_MACOS),)