elosupport / skipfish

Automatically exported from code.google.com/p/skipfish
Apache License 2.0
0 stars 0 forks source link

Build on 64-bit systems fails #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The build on a Linux 2.6.32-22-generic #33-Ubuntu SMP x86_64 GNU/Linux
system fails using make:

analysis.c: In function ‘get_date’:
analysis.c:1372: warning: format ‘%02llu’ expects type ‘long long unsigned
int *’, but argument 3 has type ‘s64 *’
analysis.c:1372: warning: format ‘%02llu’ expects type ‘long long unsigned
int *’, but argument 4 has type ‘s64 *’
analysis.c:1372: warning: format ‘%02llu’ expects type ‘long long unsigned
int *’, but argument 5 has type ‘s64 *’

Original issue reported on code.google.com by sirhelmc...@gmail.com on 22 May 2010 at 7:47

GoogleCodeExporter commented 8 years ago
That's a compiler warning, not a build failure?

Original comment by lcam...@gmail.com on 22 May 2010 at 9:06

GoogleCodeExporter commented 8 years ago
in stdint.h:
# if __WORDSIZE == 64
typedef long int  int64_t;
# else
__extension__
typedef long long int  int64_t;
# endif

so, in analysis.c:1372, format '%02llu' should be replace with '%02lu'.

Original comment by bsn0w...@gmail.com on 21 Jun 2010 at 1:30

GoogleCodeExporter commented 8 years ago
The other way to fix (instead of changing the format) is just to add a cast.

Original comment by n3npq....@gmail.com on 5 Jul 2010 at 4:34

GoogleCodeExporter commented 8 years ago
The warnings will be fixed in the next release. I can't see the build failing, 
though.

Original comment by lcam...@gmail.com on 5 Jul 2010 at 9:07