Found a better cross-platform way to suppress warnings if the test folder is not used (and the tf_retval is never used).