Bug 1073003 - Enable warnings-as-errors on B2G (for gcc >= 4.4). r=glandium
authorBotond Ballo <botond@mozilla.com>
Wed, 17 Dec 2014 14:09:54 -0500
changeset 235593 10faada5da34939f780e287b46baa800eda02db3
parent 235592 35801c7c975cd7d8161e71281b54e23fe4a410b2
child 235594 9e0680f301a418b77cc56220a72ef48ae2a18329
push id366
push usercmanchester@mozilla.com
push dateThu, 08 Jan 2015 16:40:24 +0000
reviewersglandium
bugs1073003
milestone37.0a1
Bug 1073003 - Enable warnings-as-errors on B2G (for gcc >= 4.4). r=glandium
b2g/confvars.sh
--- a/b2g/confvars.sh
+++ b/b2g/confvars.sh
@@ -54,15 +54,20 @@ MOZ_TIME_MANAGER=1
 MOZ_PAY=1
 MOZ_TOOLKIT_SEARCH=
 MOZ_PLACES=
 MOZ_B2G=1
 
 if test "$OS_TARGET" = "Android"; then
 MOZ_NUWA_PROCESS=1
 MOZ_B2G_LOADER=1
+# Warnings-as-errors cannot be enabled on gcc <= 4.4 due to bug 915555.
+if test "$GCC_MAJOR_VERSION" -gt 4 -o \
+   "$GCC_MAJOR_VERSION" -eq 4 -a "$GCC_MINOR_VERSION" -gt 4; then
+MOZ_ENABLE_WARNINGS_AS_ERRORS=1
+fi
 fi
 
 MOZ_JSDOWNLOADS=1
 
 MOZ_BUNDLED_FONTS=1
 
 export JS_GC_SMALL_CHUNK_SIZE=1