summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-09-08 11:23:25 +0300
committerToomas Soome <tsoome@me.com>2020-09-17 11:10:48 +0300
commit8c5b3a5a518f93629928bd6ed373422602ce74a9 (patch)
tree953c59e4d810cedf8c7b231b4440a3a18ee7d6f3
parent8c2fd2ffa72935b73b4236eeb5745a22f782f780 (diff)
downloadillumos-joyent-8c5b3a5a518f93629928bd6ed373422602ce74a9.tar.gz
13136 libc: memset_s() error: unchecked function return
Reviewed by: Marco van Wieringen <mvw@planets.elm.net> Reviewed by: Robert Mustacchi <rm@fingolfin.org> Approved by: Joshua M. Clulow <josh@sysmgr.org>
-rw-r--r--usr/src/lib/libc/port/gen/memset_s.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libc/port/gen/memset_s.c b/usr/src/lib/libc/port/gen/memset_s.c
index c77b02de20..f1f0d732e9 100644
--- a/usr/src/lib/libc/port/gen/memset_s.c
+++ b/usr/src/lib/libc/port/gen/memset_s.c
@@ -63,7 +63,7 @@ memset_s(void *s, rsize_t smax, int c, rsize_t n)
* memset() called through a volatile pointer to guarantee
* it will not be optimized away.
*/
- (*__memset_vp)(s, v, lim);
+ (void) (*__memset_vp)(s, v, lim);
if (n > RSIZE_MAX) {
__throw_constraint_handler_s("memset_s: n > RSIZE_MAX",