]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
allow -O3 in compilation units
authorMartin Taibr <taibr.martin@gmail.com>
Tue, 2 Jul 2019 02:35:53 +0000 (04:35 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Tue, 2 Jul 2019 02:35:53 +0000 (04:35 +0200)
qcsrc/tools/compilationunits.sh

index e3d1eb01368df1c714c55d7264eda99e89ff8bbd..68f2eb9d5628ae7df244e70e2ef158be1d69124b 100755 (executable)
@@ -38,6 +38,7 @@ QCCDEFS="${QCCDEFS[@]}"
 
 declare -a QCCFLAGS=(
     -std=gmqcc
+    -O3 # optimization to accept variable initialization inside `if (1)` blocks and avoid warnings
     -Wall -Werror
     -futf8
     -freturn-assignments