Menu

#214 rapiwrapper.h:214: bad call to memset ?

SVN Trunk
closed-out-of-date
nobody
None
5
2016-10-25
2015-10-22
dcb
No

rapiwrapper.h:214:34: warning: argument to 'sizeof' in 'void memset(void, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]

Source code is

memset(version, 0, sizeof(version));

Suggest new code

memset(version, 0, sizeof(*version));

Also the same problem seems to occur at lines 223 and 238

Discussion

  • David Eriksson

    David Eriksson - 2015-12-17

    dcb, do you want commit access to the repo?

     
  • David Eriksson

    David Eriksson - 2016-10-25
    • Status: open --> closed-out-of-date
     

Log in to post a comment.

MongoDB Logo MongoDB