Fix some warnings from clang.

This commit is contained in:
Olaf Seibert 2015-05-20 22:54:26 +02:00
parent 59711f17f2
commit 6c992f6406
4 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -44,7 +44,7 @@ char *skipdelim_comma(
int *comma)
{
cp = skipwhite(cp);
if (*comma = (*cp == ',')) {
if ((*comma = (*cp == ','))) {
cp = skipwhite(cp + 1);
}
return cp;

View File

@ -3,6 +3,7 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "symbols.h" /* my own definitions */

View File

@ -361,4 +361,6 @@ void add_table(
void add_symbols(
SECTION *current_section);
void list_symbol_table(
void);
#endif