Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Do not cast away a const qualification on a variable type. Casting away the const qualification allows violation of rule VOID EXPxx-C. Do not modify constant values, which prohibits the modification of constant values.

...

Because the memset() function takes a (non-const) pointer to void, the compiler must implicitly cast away const.

...