diff --git a/.travis.yml b/.travis.yml
index b390c333233326267a1d7740c2f75d95ab6e1b4a..826a6200e4b3838c05c30d5eb1992909753d6903 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,11 +17,10 @@ env:
   - PLUMED_CC=mpicc PLUMED_CXX=mpic++  PLUMED_CXXFLAGS=-O3 LAPACK=yes
 # cppcheck
 # in principle we should make only "cppcheck" here
-# to avoid to many if's below, I also make a quick test with -O0 here
-  - PLUMED_CC=gcc   PLUMED_CXX=g++     PLUMED_CXXFLAGS=-O0 CPPCHECK=yes
+  - PLUMED_CC=gcc   PLUMED_CXX=g++   CPPCHECK=yes
 matrix:
   allow_failures:
-    - env: PLUMED_CC=gcc   PLUMED_CXX=g++     PLUMED_CXXFLAGS=-O0 CPPCHECK=yes
+    - env: PLUMED_CC=gcc   PLUMED_CXX=g++  CPPCHECK=yes
 # Possible additional variables:
 #   VALGRIND=yes to make valgrind tests, only when log contains string [valgrind]
 install: