Commit 8670c354 authored by David Howells's avatar David Howells Committed by Bernhard Link

'Fixes' to allow -Werror to be used

Fix set-only variables and unused variables and functions to allow
-Werror to be used during compilation.
parent e998e99e
......@@ -87,7 +87,6 @@ const char *getAtom(struct connection *c UNUSED, uint32_t atom) {
}
void internAtom(struct connection *c UNUSED, uint32_t atom, struct atom *data) {
struct atom **p;
uint32_t lastmask;
if( atom <= CONSTANT_ATOMS ) {
free(data);
......@@ -98,7 +97,6 @@ void internAtom(struct connection *c UNUSED, uint32_t atom, struct atom *data) {
data->atom = atom;
p = &atom_root;
lastmask = 0;
while( *p != NULL ) {
uint32_t k;
k = (*p)->atom;
......
......@@ -1820,7 +1820,7 @@ static inline void print_server_event(struct connection *c) {
static inline void print_server_reply(struct connection *c) {
unsigned int cmd,seq;
unsigned int seq;
struct expectedreply *replyto,**lastp;
size_t len;
unsigned long stackvalues[30];
......@@ -1834,7 +1834,6 @@ static inline void print_server_reply(struct connection *c) {
if( len > c->servercount )
len = c->servercount;
cmd = serverCARD8(1);
seq = serverCARD16(2);
for( lastp = &c->expectedreplies ;
(replyto=*lastp) != NULL ; lastp=&replyto->next){
......
......@@ -2183,11 +2183,13 @@ bool translate(struct parser *parser, const char *name) {
return false;
}
#ifdef HAVE_TDESTROY
static void free_varname(void *nodep) {
struct varname *vn = nodep;
variable_unref(vn->variable);
free(vn);
}
#endif
bool parser_free(struct parser *parser) {
bool success = !parser->error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment