aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFindlay Feng <findlayfeng@gmail.com>2025-07-11 23:08:35 +0800
committerGitHub <noreply@github.com>2025-07-11 11:08:35 -0400
commit993cec0891c056bca3ab3c4436faffb878da2ae5 (patch)
tree00d04592269d1ab9264aa23bd013f79fa0e3ad0f
parent697c6e8d2870542f2114bb0edcf5c026ba310ffe (diff)
downloadkutter-993cec0891c056bca3ab3c4436faffb878da2ae5.tar.gz
kutter-993cec0891c056bca3ab3c4436faffb878da2ae5.tar.xz
kutter-993cec0891c056bca3ab3c4436faffb878da2ae5.zip
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 <i@fengch.me>
-rw-r--r--src/sos_filter.c2
1 files changed, 1 insertions, 1 deletions
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;
}