Extend verbose message for memsetClassFloat

This commit is contained in:
Alexander Mai 2015-02-22 15:41:02 +01:00
parent fd7d29447d
commit 26c2c4a824
1 changed files with 4 additions and 2 deletions

View File

@ -1097,8 +1097,10 @@ void CheckClass::memsetErrorReference(const Token *tok, const std::string &memfu
void CheckClass::memsetErrorFloat(const Token *tok, const std::string &type)
{
reportError(tok, Severity::portability, "memsetClassFloat", "Using memset() on " + type + " which contains a floating point number.\n"
"Using memset() on " + type + " which contains a floating point number. This is not portable because memset() sets each byte of a block of memory to a specific value and"
" the actual representation of a floating-point value is implementation defined.");
"Using memset() on " + type + " which contains a floating point number."
" This is not portable because memset() sets each byte of a block of memory to a specific value and"
" the actual representation of a floating-point value is implementation defined."
" Note: In case of an IEEE754-1985 compatible implementation setting all bits to zero results in the value 0.0.");
}