Project

General

Profile

Bug #6389

Use (void) memcpy(), not (void *) memcpy()

Added by Richard Yao about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-10-24
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

This was caught by Clang on Linux. Clearly the intent of this code was
to explicitly ignore the return value.

https://github.com/zfsonlinux/zfs/commit/f9f431cd28ed6a78a2659758ce4a83c4c76fc3a1
https://github.com/openzfs/openzfs/pull/12

Reviewed by: Brian Behlendorf <>
Reviewed by: Matthew Ahrens <>

History

#1

Updated by Electric Monk about 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit 286eb3ed9ae6749df0c20c801277beae2229a179

commit  286eb3ed9ae6749df0c20c801277beae2229a179
Author: Richard Yao <ryao@gentoo.org>
Date:   2015-10-31T00:11:09.000Z

    6389 Use (void) memcpy(), not (void *) memcpy()
    Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF