Guard potentially unused variable (#4083)
Merge pull request #4084 from dschwen/dbgwarn_4083

Guard potentially unused variable