Skip to content

Commit

Permalink
Removed compiler warnings [-Wself-assign] for a cleaner build output …
Browse files Browse the repository at this point in the history
…for *real* problems
  • Loading branch information
Sean Charles authored and websnarf committed Jan 25, 2016
1 parent 4745729 commit 208b1f2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bstraux.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* 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
Expand Down Expand Up @@ -25,6 +26,10 @@
#include "bstrlib.h"
#include "bstraux.h"

#ifndef UNUSED
#define UNUSED(x) (void)(x)
#endif

/* bstring bTail (bstring b, int n)
*
* Return with a string of the last n characters of b.
Expand Down Expand Up @@ -197,10 +202,10 @@ int i, l, c;
}

static size_t readNothing (void *buff, size_t elsize, size_t nelem, void *parm) {
buff = buff;
elsize = elsize;
nelem = nelem;
parm = parm;
UNUSED(buff);
UNUSED(elsize);
UNUSED(nelem);
UNUSED(parm);
return 0; /* Immediately indicate EOF. */
}

Expand Down

0 comments on commit 208b1f2

Please sign in to comment.