Skip to content
Snippets Groups Projects
Commit c2cbbf63df07 authored by Sean Charles's avatar Sean Charles
Browse files

Removed compiler warnings [-Wself-assign] for a cleaner build output for *real* problems

parent e8d674ee8535
No related branches found
No related tags found
No related merge requests found
/* /*
* This source file is part of the bstring string library. This code was * This source file is part of the bstring string library. This code was
* written by Paul Hsieh in 2002-2015, and is covered by the BSD open source * written by Paul Hsieh in 2002-2015, and is covered by the BSD open source
...@@ -25,6 +26,10 @@ ...@@ -25,6 +26,10 @@
#include "bstrlib.h" #include "bstrlib.h"
#include "bstraux.h" #include "bstraux.h"
#ifndef UNUSED
#define UNUSED(x) (void)(x)
#endif
/* bstring bTail (bstring b, int n) /* bstring bTail (bstring b, int n)
* *
* Return with a string of the last n characters of b. * Return with a string of the last n characters of b.
...@@ -197,10 +202,10 @@ ...@@ -197,10 +202,10 @@
} }
static size_t readNothing (void *buff, size_t elsize, size_t nelem, void *parm) { static size_t readNothing (void *buff, size_t elsize, size_t nelem, void *parm) {
buff = buff; UNUSED(buff);
elsize = elsize; UNUSED(elsize);
nelem = nelem; UNUSED(nelem);
parm = parm; UNUSED(parm);
return 0; /* Immediately indicate EOF. */ return 0; /* Immediately indicate EOF. */
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment