]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove unused definitions
authorTimePath <andrew.hardaker1995@gmail.com>
Wed, 23 Dec 2015 05:57:00 +0000 (16:57 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Wed, 23 Dec 2015 05:57:00 +0000 (16:57 +1100)
qcsrc/Makefile
qcsrc/common/vehicles/sv_vehicles.qh
qcsrc/test/compilationunit.sh

index bea2993a02587e3a345326f5ceb77e80f96dafca..fd566d714ad41572832e3eac44edc0e90dc2c266 100644 (file)
@@ -6,17 +6,14 @@ NDEBUG ?= 1
  
 QCCVERSIONFILE := qccversion.$(shell (cd server && $(QCC) --version) > qccversion.txt && git hash-object qccversion.txt)
 
-# We eventually need to get rid of these.
+# We eventually need to get rid of these
 QCCFLAGS_WTFS ?= \
        -Wno-field-redeclared
 
 QCCFLAGS_FEATURES ?= \
-       -DVEHICLES_ENABLED=1 \
-       -DVEHICLES_USE_ODE=0 \
        -DBUILD_MOD=$(BUILD_MOD)
 
 # -Ooverlap-locals is required
-
 QCCFLAGS ?= \
        -std=gmqcc \
        -Ooverlap-locals \
index 496ef9c40babede723f78406b5eb2f905be9b1b0..aee4bf6c6df75f60f712e1a641cb0894adf3263b 100644 (file)
@@ -4,8 +4,6 @@
 
 #include "../turrets/sv_turrets.qh"
 
-// #define VEHICLES_USE_ODE
-
 // vehicle cvars
 float autocvar_g_vehicles;
 float autocvar_g_vehicles_enter;
index 66cf5c57668175008f6547c2341b475f715ca9a1..dfe7181aea1fcb29e6a594e3df2f3f9e3e2750c7 100755 (executable)
@@ -8,10 +8,6 @@ declare -a NOWARN=(
   -Wno-unused-variable
   -Wno-implicit-function-pointer
 )
-declare -a FEATURES=(
-  -DVEHICLES_ENABLED=1
-  -DVEHICLES_USE_ODE=0
-)
 declare QCC=../../../gmqcc/gmqcc
 
 declare -a QCC_FLAGS=(
@@ -21,7 +17,7 @@ declare -a QCC_FLAGS=(
   -futf8
   -freturn-assignments
   -frelaxed-switch
-  -O3
+  -Ooverlap-locals
 )
 
 function check() {
@@ -29,7 +25,7 @@ function check() {
   declare -la predefs=("-D${2}" "lib/_all.inc" "${base}/_all.qh")
   find "$base" -type f -name '*.qc' -print0 | sort -z | while read -r -d '' file; do
     echo "$file"
-    ${QCC} "${QCC_FLAGS[@]}" "${NOWARN[@]}" "${FEATURES[@]}" "${predefs[@]}" "$file" >/dev/null
+    ${QCC} "${QCC_FLAGS[@]}" "${NOWARN[@]}" "${predefs[@]}" "$file" >/dev/null
   done
 }