avoid unused variable warnings/error in nullptr test patch by Matthias Wohlmuth [[Imported from SVN: r6760]]