From 88d0e51d38c178db058073d544c33fd5e86ba6e0 Mon Sep 17 00:00:00 2001 From: Franck LeCodeur Date: Fri, 27 Aug 2021 20:22:44 +0200 Subject: [PATCH] jam: Fix warning. Argument has type long int but indicated format was int. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc bin.linuxx86/variable.o variable.c: In function ‘var_defines’: variable.c:121:46: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] 121 | printf("MAXSYM is too low, need at least %d\n", val - *e); | ~^ ~~~~~~~~ | | | | int long int | %ld Change-Id: I389577a71416029fdff0f486af745ea482b14ddd Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4397 Reviewed-by: Jérôme Duval --- jam/variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jam/variable.c b/jam/variable.c index 97b7bb067c..7a5b4f4442 100644 --- a/jam/variable.c +++ b/jam/variable.c @@ -118,7 +118,7 @@ var_defines( const char **e ) /* Get name */ if (val - *e > MAXSYM) { - printf("MAXSYM is too low, need at least %d\n", val - *e); + printf("MAXSYM is too low, need at least %td\n", val - *e); exit(-1); } strncpy( buf, *e, val - *e );