...
EXP12-EX1: If the return value is inconsequential or if any errors can be safely ignored, such as for functions called because of their side effects, the function should be explicitly cast to void
to signify programmer intent
...
bgColor | #ccccff |
---|
...
. See the compliant solution for removing an existing destination file in FIO10-A. Take care when using the rename() function for example of this exception.
EXP12-EX2: If a function cannot fail or if the return value cannot signify an error condition, the return value may be ignored. Such functions should be added to a white list when automatic checkers are used.
...