Fix warning when compiling in release mode