| Summary: | a few warnings when compiling | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sylvain <sylvain.becker> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | gabomdq |
| Version: | HG 2.0 | ||
| Hardware: | ARM | ||
| OS: | Android (All) | ||
...and an minor extra one !
jni/SDL_image_hg/IMG_png.c:499:24: note: remove extraneous parentheses around the comparison to silence this warning
if ( (row_pointers == NULL) ) {
~ ^ ~
jni/SDL_image_hg/IMG_png.c:499:24: note: use '=' to turn this equality comparison into an assignment
if ( (row_pointers == NULL) ) {
And also:
jni/SDL_image_hg/external/jpeg-9/jmem-android.c:135:5: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration]
unlink(path);
^
jni/SDL_image_hg/external/jpeg-9/jmem-android.c:141:45: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration]
snprintf(path, 1023, "/sdcard/.%d.tmp", getpid());
^
Thanks !
|
I got them with CLang + Android A few warnings, that could be important : jni/SDL_hg/src/thread/pthread/SDL_syssem.c:159:36: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] if ((SDL_GetTicks() - end) >= 0) { ~~~~~~~~~~~~~~~~~~~~~~ ^ ~ jni/SDL_hg/src/timer/unix/SDL_systimer.c:164:1: warning: control may reach end of Compile thumb : SDL2 <= SDL_blit_A.c non-void function [-Wreturn-type] jni/SDL_hg/src/video/android/SDL_androidgl.c:41:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Android_GLES_SwapWindow(_THIS, SDL_Window * window) ^~~~~~~~~~~~~~~~~~~~~~~ jni/SDL_hg/src/video/android/SDL_androidgl.c:47:1: warning: control reaches end of non-void function [-Wreturn-type] } ^