From 993cec0891c056bca3ab3c4436faffb878da2ae5 Mon Sep 17 00:00:00 2001 From: Findlay Feng Date: Fri, 11 Jul 2025 23:08:35 +0800 Subject: [PATCH] sos_filter: fix overflows_int32 (#6976) Modify the inline function overflows_int32 to static inline Inline functions cannot be debugged in -O mode https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653 Signed-off-by: Findlay Feng --- src/sos_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sos_filter.c b/src/sos_filter.c index 04eb366e..6e64bc0a 100644 --- a/src/sos_filter.c +++ b/src/sos_filter.c @@ -29,7 +29,7 @@ struct sos_filter { struct sos_filter_section filter[0]; }; -inline uint8_t +static inline uint8_t overflows_int32(int64_t value) { return value > (int64_t)INT32_MAX || value < (int64_t)INT32_MIN; }