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>
Diff
jam/variable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -118,7 +118,7 @@
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 );