mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
5d15d97418
commit
21b28a4126
1 changed files with 1 additions and 0 deletions
|
|
@ -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),)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue