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:
Franck LeCodeur 2021-08-27 20:22:44 +02:00 committed by Jérôme Duval
parent 5cccbfddba
commit 88d0e51d38

View File

@ -118,7 +118,7 @@ var_defines( const char **e )
/* Get name */ /* Get name */
if (val - *e > MAXSYM) { 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); exit(-1);
} }
strncpy( buf, *e, val - *e ); strncpy( buf, *e, val - *e );