diff --git a/lib/checkother.h b/lib/checkother.h index 4a0da0958..fd91ebcab 100644 --- a/lib/checkother.h +++ b/lib/checkother.h @@ -372,7 +372,7 @@ private: "- assignment of a variable to itself\n" "- Comparison of values leading always to true or false\n" "- Clarify calculation with parentheses\n" - "- suspicious comparison of '\\0' with a char* variable\n" + "- suspicious comparison of '\\0' with a char\\* variable\n" "- duplicate break statement\n" "- unreachable code\n" "- testing if unsigned variable is negative/positive\n" @@ -382,7 +382,7 @@ private: "- comma in return statement (the comma can easily be misread as a semicolon).\n" "- prefer erfc, expm1 or log1p to avoid loss of precision.\n" "- identical code in both branches of if/else or ternary operator.\n" - "- redundant pointer operation on pointer like &*some_ptr.\n" + "- redundant pointer operation on pointer like &\\*some_ptr.\n" "- find unused 'goto' labels.\n" "- function declaration and definition argument names different.\n" "- function declaration and definition argument order different.\n"; diff --git a/lib/checkstring.h b/lib/checkstring.h index bb804b4cf..b68b99f31 100644 --- a/lib/checkstring.h +++ b/lib/checkstring.h @@ -129,8 +129,8 @@ private: "- incorrect length arguments for 'substr' and 'strncmp'\n" "- suspicious condition (runtime comparison of string literals)\n" "- suspicious condition (string/char literals as boolean)\n" - "- suspicious comparison of a string literal with a char* variable\n" - "- suspicious comparison of '\\0' with a char* variable\n" + "- suspicious comparison of a string literal with a char\\* variable\n" + "- suspicious comparison of '\\0' with a char\\* variable\n" "- overlapping strcmp() expression\n"; } };