diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8d20cfce25c24c38a298ff5f25d602e957566d51..9aa3fea11adfb6ebf4fb1c804ad44d426fdaa666 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,6 +34,7 @@ option(DD4HEP_USE_GEANT4 "Enable the simulation part based on Geant4" OFF)
 #option(DD4HEP_USE_BOOST "build with boost - needed only if built with Geant4" OFF)
 option(DD4HEP_USE_GEAR "Build gear wrapper for backward compatibility" OFF)
 option(DD4HEP_USE_LCIO "Build lcio extensions" OFF)
+option(BUILD_TESTING "Enable and build tests" ON)
 
 #For backward compatibility for now
 IF( DEFINED DD4HEP_WITH_GEANT4 )
diff --git a/DDRec/include/DDRec/DDGear.h b/DDRec/include/DDRec/DDGear.h
index 124dc9e776d5471f53ab7d00c35147912b24d63b..310ff7b1712e95d5e57c93b443e3f2921e0221db 100644
--- a/DDRec/include/DDRec/DDGear.h
+++ b/DDRec/include/DDRec/DDGear.h
@@ -69,8 +69,8 @@ namespace DD4hep {
 
 
     /** dummy implementation of required c'tors to allow using the extension mechanism */
-    GearHandle(const Geometry::DetElement& d) : _gObj(0) {}
-    GearHandle(const GearHandle& c,const Geometry::DetElement& det) : _gObj(0)  {}
+    GearHandle(const Geometry::DetElement& /*d*/) : _gObj(0) {}
+    GearHandle(const GearHandle& /*c*/,const Geometry::DetElement& /*det*/) : _gObj(0)  {}
   } ;
   
 
diff --git a/DDRec/src/gear/createGearForILD.cpp b/DDRec/src/gear/createGearForILD.cpp
index aaed7f9bfa2869a10356f6d4833234cc9f522be4..bce26111f89bb85d6e732a2615e6a72df582a350 100644
--- a/DDRec/src/gear/createGearForILD.cpp
+++ b/DDRec/src/gear/createGearForILD.cpp
@@ -35,7 +35,7 @@ namespace DD4hep{
      *  @version $Id: $
      */
     
-    static long createGearForILD(LCDD& lcdd, int argc, char** argv) {
+    static long createGearForILD(LCDD& lcdd, int /*argc*/, char** /*argv*/) {
       
       std::cout << " **** running plugin createGearForILD ! " <<  std::endl ;