commit | 32ba549536ea5fd7311f5d164a1aef4e1e26af0f | [log] [tgz] |
---|---|---|
author | frei tycho <tfrei@baumer.com> | Tue Apr 30 14:59:17 2024 +0000 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri May 03 07:52:42 2024 -0400 |
tree | 7b906d3bae100f87591fcd29c9ba3dba38bb6990 | |
parent | ea47ef0ac0ef801c5920c08b1bcb33d02bcbda1a [diff] |
lib: os: coding guidelines: add explicit cast to void - added explicit cast to void when returned value is expectedly ignored Signed-off-by: frei tycho <tfrei@baumer.com>
diff --git a/lib/os/sem.c b/lib/os/sem.c index b01ead5..b7676c9 100644 --- a/lib/os/sem.c +++ b/lib/os/sem.c
@@ -53,7 +53,7 @@ return -EINVAL; } - atomic_set(&sem->futex.val, initial_count); + (void)atomic_set(&sem->futex.val, initial_count); sem->limit = limit; return 0;