Fixes compiler warnings when -Wunused-variable and -Wunused-functions compiler switches are enabled. Bug #672725.