| Summary: | Compile throws a warning on RPI (Raspbian Stretch) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | midwan |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | christer.solskogen |
| Version: | 2.0.9 | ||
| Hardware: | ARM | ||
| OS: | Linux | ||
This only happens if HAVE_LIBUNWIND_H is defined (and alas: if the user have /usr/include/libunwind.h) Fixed, thanks! https://hg.libsdl.org/SDL/rev/2a761b9ff83f We need the larger size in the print statement to cover 64-bit architectures. |
This occurs in both 2.0.9 and the current tip from Mercurial: When trying to compile on a Raspberry Pi 3, running Raspbian Stretch (fully updated), a warning appears: /home/pi/projects/SDL/src/test/SDL_test_memory.c: In function ‘SDL_TrackAllocation’: /home/pi/projects/SDL/src/test/SDL_test_memory.c:112:109: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘unw_word_t {aka unsigned int}’ [-Wformat=] snprintf(entry->stack_names[stack_index], sizeof(entry->stack_names[stack_index]), "%s+0x%llx", sym, offset);