| Summary: | [patch] warnings in SDL_event.c | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Malte Kießling <mkalte> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | patch | ||
This is fixed, thanks! https://hg.libsdl.org/SDL/rev/e5e55d467f7e |
Created attachment 4229 [details] patch In some of the macros and the code inside SDL_LogEvent a few printf parameters are specified with SDL_PRIs64, but the arguments are cast to long long. This causes warnings in both clang and gcc. (well, only if long long is not the same as int64_t i suppose). Changing those casts to Sint64 fixes this. Example warning $HOME/progg/SDL/src/events/SDL_events.c:281:53: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'long long int' [-Wformat=] ~mkalte