diff --git a/NPSimulation/Makefile.geant4 b/NPSimulation/Makefile.geant4
index 962fd478817c7e6767239e4900432b30d235866d..d125cf3a5748d33927035c4bf3956fc1e6006f28 100644
--- a/NPSimulation/Makefile.geant4
+++ b/NPSimulation/Makefile.geant4
@@ -23,7 +23,7 @@ endif
 G4WORKDIR = ./
 G4BIN = ./bin
 
-CPPFLAGS += $(shell root-config --cflags)
+CPPFLAGS += $(shell root-config --cflags) -Wno-deprecated-register
 CPPFLAGS += -I$(NPTOOL)/NPLib/include
 
 ifeq ($(ARCH),linuxx8664gcc)