changed gcc optimization level from "-O3" to "-O2" for releases
authorHolger Schemel <info@artsoft.org>
Fri, 2 Oct 2020 12:51:59 +0000 (14:51 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 2 Oct 2020 12:51:59 +0000 (14:51 +0200)
commit0896ebe9d29a756c7adc005c6b93ff28f2fd396d
tree4c42426f3ecb1d75cc05027a700386b26bc7f3ec
parentcb20d7a5c113af2ca723cc718dd0f48baec9d8d7
changed gcc optimization level from "-O3" to "-O2" for releases

This change was done due to general recommendations and because of
some versions of gcc emitting lots of misleading warnings with "-O3"
related to pointers possibly being null in cases where they surely
cannot be null ("warning: argument 1 null where non-null expected"
for "strcmp(s1, s2)" in src/libgame/misc.c after explicitly checking
that s1 is not null), which makes it harder to recognize "real"
warnings when building the distribution packages.
src/Android.mk
src/Makefile