Fix linux release build warning

Master failing in TeamCity on Linux Release builds due to unused variable warning.