mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[NFC] relationals: fix -Wformat-security warnings (#2084)
Fix a "format string is not a string literal (potentially insecure)" warning. There is no security issue here as the format string argument is constructed using a stringstream right before. Fix this occurrence anyway to allow enabling the warning globally. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
e678277c93
commit
5b3bfeeca8
@@ -309,7 +309,7 @@ int RelationalsFPTest::test_equiv_kernel(unsigned int vecSize,
|
||||
sstr << "ERROR: Data sample " << i << ":" << j << " at size " << vs
|
||||
<< " does not validate! Expected " << e << ", got " << o
|
||||
<< ", source " << iA << ":" << iB << std::endl;
|
||||
log_error(sstr.str().c_str());
|
||||
log_error("%s", sstr.str().c_str());
|
||||
};
|
||||
|
||||
/* And verify! */
|
||||
|
||||
Reference in New Issue
Block a user