From 6c992f6406824667ddbf97d5328e46c1771d5d70 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Wed, 20 May 2015 22:54:26 +0200 Subject: [PATCH] Fix some warnings from clang. --- Makefile | 2 +- parse.c | 2 +- symbols.c | 1 + symbols.h | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3bcc352..75f99c8 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ clean: -rm -f $(MACRO11_OBJS) $(DUMPOBJ_OBJS) macro11 dumpobj macro11.o: macro11.c macro11.h rad50.h object.h stream2.h \ - mlb.h util.h + mlb.h util.h symbols.h mlb.o: mlb.c rad50.h stream2.h mlb.h macro11.h util.h mlb-rsx.o: mlb-rsx.c rad50.h stream2.h mlb.h macro11.h util.h object.o: object.c rad50.h object.h diff --git a/parse.c b/parse.c index 6191c54..5f0630e 100644 --- a/parse.c +++ b/parse.c @@ -44,7 +44,7 @@ char *skipdelim_comma( int *comma) { cp = skipwhite(cp); - if (*comma = (*cp == ',')) { + if ((*comma = (*cp == ','))) { cp = skipwhite(cp + 1); } return cp; diff --git a/symbols.c b/symbols.c index cb29f9f..4d1223a 100644 --- a/symbols.c +++ b/symbols.c @@ -3,6 +3,7 @@ #include #include +#include #include "symbols.h" /* my own definitions */ diff --git a/symbols.h b/symbols.h index 5e473c5..de2bf7c 100644 --- a/symbols.h +++ b/symbols.h @@ -361,4 +361,6 @@ void add_table( void add_symbols( SECTION *current_section); +void list_symbol_table( + void); #endif