We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3506 - increase warning level for android and sdl2
Summary: increase warning level for android and sdl2
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: don't know
Hardware: All Android (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-05 11:23 UTC by Sylvain
Modified: 2018-10-15 16:24 UTC (History)
0 users

See Also:


Attachments
patch (17.95 KB, patch)
2016-12-05 11:23 UTC, Sylvain
Details | Diff
patch (18.71 KB, patch)
2017-01-08 12:46 UTC, Sylvain
Details | Diff
patch doc header (2.96 KB, patch)
2017-11-08 13:58 UTC, Sylvain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain 2016-12-05 11:23:31 UTC
Created attachment 2646 [details]
patch

This is a patch to set and increase the warnings level when building on android.
It also fixes some warnings and I tested the build on Android.

It remains some warning with -Weverything:

-Wbad-function-cast 30
-Wcast-align 998
-Wcast-qual 43
-Wconversion 718
-Wcovered-switch-default 10
-Wdouble-promotion 60
-Wfloat-equal 8
-Wformat-nonliteral 2
-Woverlength-strings 7
-Wpacked 66
-Wpadded 117
-Wpedantic 23
-Wreserved-id-macro 721
-Wshift-sign-overflow 13
-Wsign-conversion 507
-Wswitch-enum 45
-Wundef 715
-Wunused-macros 6
-Wunused-parameter 169
Comment 1 Sylvain 2017-01-08 12:46:55 UTC
Created attachment 2669 [details]
patch

patch updated to the head.
Comment 2 Sylvain 2017-11-08 13:58:13 UTC
Created attachment 3077 [details]
patch doc header

fix small warning in documentation and prototype
Comment 3 Sylvain 2018-10-15 16:24:21 UTC
was fixed in https://hg.libsdl.org/SDL/rev/df7260f149f2