From 8f84f76f09653ce9b7c1d80cfd77ea1c8464e893 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 11 Mar 2025 10:46:08 -0400 Subject: [PATCH] stop a warning when compiling util/stripbs.c --- util/stripbs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/util/stripbs.c b/util/stripbs.c index 49802ade0..fbe8316c6 100644 --- a/util/stripbs.c +++ b/util/stripbs.c @@ -12,7 +12,13 @@ #include #include -int main(int argc, char *argv[]) +#if defined(__GNUC__) +#define UNUSED __attribute__((unused)) +#else +#define UNUSED +#endif + +int main(int argc UNUSED, char *argv[] UNUSED) { int stop = 0, trouble = 0; char buf[2];