Skip to content

Commit

Permalink
restore -Werror for everything but lua
Browse files Browse the repository at this point in the history
(can't nicely remove its "bad-function-cast everywhere possible" approach)

avoid crash by casting astring to char * for mame_printf_info()
  • Loading branch information
feos committed Mar 7, 2017
1 parent e63b939 commit 60edf92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mame-rr/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ CCOMFLAGS += -O$(OPTIMIZE)
ifneq ($(OPTIMIZE),0)
ifneq ($(TARGETOS),os2)
ifndef NOWERROR
CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS)
CCOMFLAGS += -Werror -fno-strict-aliasing $(ARCHOPTS)
else
CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS)
endif
Expand Down
2 changes: 1 addition & 1 deletion mame-rr/src/emu/mame.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int mame_execute(core_options *options)

// report rom name
if (strlen(gamename) > 0)
mame_printf_info("\nROM name: %s\n", gamename);
mame_printf_info("\nROM name: %s\n", (char *)gamename);

// run the machine
error = machine->run(firstrun);
Expand Down
2 changes: 1 addition & 1 deletion mame-rr/src/lib/lib.mak
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $(OBJ)/liblua.a: $(LUAOBJS)

$(LIBOBJ)/lua/%.o: $(LIBSRC)/lua/%.c | $(OSPREBUILD)
@echo Compiling $<...
$(CC) $(CDEFS) $(CCOMFLAGS) $(CONLYFLAGS) -c $< -o $@
$(CC) $(CDEFS) $(CCOMFLAGS) -Wno-error $(CONLYFLAGS) -c $< -o $@


#-------------------------------------------------
Expand Down

0 comments on commit 60edf92

Please sign in to comment.