[wireless-regdb] [PATCH] reglib: fix memset usage
Luis R. Rodriguez
mcgrof at do-not-panic.com
Wed Nov 20 09:07:51 EST 2013
On Mon, Nov 11, 2013 at 8:39 PM, Christian Lamparter
<chunkeey at googlemail.com> wrote:
> gcc-4.8 fails to compile reglib due to:
>
> reglib.c:1133:22: error: argument to ‘sizeof’ in ‘memset’ call is
> the same expression as the destination; did you mean
> to dereference it? [-Werror=sizeof-pointer-memaccess]
> memset(rd, 0, sizeof(rd));
> ^
> reglib.c:1155:22: error: argument to ‘sizeof’ in... (same as above)
>
> Signed-off-by: Christian Lamparter <chunkeey at googlemail.com>
Thanks, applied and pushed!
Luis
More information about the wireless-regdb
mailing list