aports/testing/perl-snmp/gcc14-Wformat.patch
Celeste b678dad77c testing/perl-snmp: fix build with gcc 14
fix -Wformat & -Wimplicit-function-declaration
2024-09-29 14:43:09 +00:00

13 lines
481 B
Diff

diff --git a/SNMP.xs b/SNMP.xs
index 1427c00..4e89ffd 100644
--- a/SNMP.xs
+++ b/SNMP.xs
@@ -4783,7 +4783,7 @@ snmp_translate_obj(var,mode,use_long,auto_init,best_guess,include_module_name)
break;
default:
- if (verbose) warn("snmp_translate_obj:unknown translation mode: %s\n", mode);
+ if (verbose) warn("snmp_translate_obj:unknown translation mode: %d\n", mode);
}
if (*str_buf) {
RETVAL = (char*)str_buf;