commit | c16b1d08df67e6d56634bd6b69cbfd6c0be74c41 | [log] [tgz] |
---|---|---|
author | Flavio Ceolin <flavio.ceolin@intel.com> | Mon Nov 26 17:24:45 2018 -0800 |
committer | Andrew Boie <andrewboie@gmail.com> | Thu Nov 29 10:18:59 2018 -0800 |
tree | cce73e7846883ba51484feed3615ed2968837107 | |
parent | 98d03266f18b8b9d9d2f8015cc29417f0611f282 [diff] |
misra: Ignoring the return atomic_set when not used The function atomic_set return the previous value of the target. Sometimes this value is irrelevant, e.g when initializing a variable. As MISRA-C rule 17.7 requires that the value returned by a non-void function must be used, we have to explicitly ignore some cases. MISRA-C rule 17.7 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>