diff --git a/build.sh b/build.sh
index bfa0245ff12f9ec6a6040a036e83df3ab8deb018..568ed49417f5547c65a8d42f5e81a764ae2f4ba8 100644
--- a/build.sh
+++ b/build.sh
@@ -15,7 +15,7 @@ if [ -x ./bin/bob_dbmanage.py ]; then
 fi
 
 if [ -d ./doc ]; then
-  run_cmd ./bin/sphinx-build -n -W doc sphinx
+  run_cmd ./bin/sphinx-build -n doc sphinx
 fi
 
 if [ -z "${WHEEL_TAG}" ]; then