disable redefine warning when template compiled