mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 15:29:11 +01:00
jam: Fix warning. Argument has type long int but indicated format was int.
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 <jerome.duval@gmail.com>
This commit is contained in:
parent
5cccbfddba
commit
88d0e51d38
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user