Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COMP: Suppress
-Wformat-nonliteral
warning in diff tensor example
Suppress `-Wformat-nonliteral` warning in diffusion tensor reconstruction image filter example: pass the string literals directly to `snprintf` without using an intermediate variable. Fixes: ``` [CTest: warning matched] /Users/builder/externalExamples/Filtering/DiffusionTensor3DReconstructionImageFilter.cxx:254:46: warning: format string is not a string literal [-Wformat-nonliteral] snprintf(filename, sizeof(filename), fn.c_str(), referenceImageIndex); ^~~~~~~~~~ [CTest: warning matched] /Users/builder/externalExamples/Filtering/DiffusionTensor3DReconstructionImageFilter.cxx:260:46: warning: format string is not a string literal [-Wformat-nonliteral] snprintf(filename, sizeof(filename), fn.c_str(), i); ^~~~~~~~~~ [CTest: warning suppressed] 2 warnings generated. ``` raised for example in: https://open.cdash.org/viewBuildError.php?type=1&onlydeltap&buildid=9582771 Left behind in commit 001a1a7.
- Loading branch information