Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Aug 27, 2024
1 parent 9018c2d commit bc683df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 3 additions & 1 deletion platforms/shared/desktop/makefiles/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ CFLAGS += -std=c99

DEBUG ?= 0
ifeq ($(DEBUG), 1)
BUILD_CONFIG = Debug
CPPFLAGS +=-DDEBUG -g3
else
BUILD_CONFIG = Release
CPPFLAGS +=-DNDEBUG -O3 -flto=auto
LDFLAGS += -O3 -flto=auto
endif
Expand Down Expand Up @@ -70,7 +72,7 @@ else
endif

all: header $(TARGET)
@echo Build complete for $(PLATFORM)
@echo Build complete for $(PLATFORM) \($(BUILD_CONFIG)\)

$(TARGET): $(OBJECTS)
$(CXX) -o $@ $(OBJECTS) $(LDFLAGS)
Expand Down
5 changes: 0 additions & 5 deletions src/geargrafx_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ bool GeargrafxCore::RunToVBlank(u8* frame_buffer, s16* sample_buffer, int* sampl

m_huc6260->SetBuffer(frame_buffer);
bool stop = false;
int failsafe_clocks = 0;

do
{
Expand Down Expand Up @@ -148,12 +147,8 @@ bool GeargrafxCore::RunToVBlank(u8* frame_buffer, s16* sample_buffer, int* sampl
get_debug_state = true;
}
#endif
// Failsafe: if the emulator is running too long, stop it
// if (failsafe_clocks >= 150000)
// stop = true;

m_clock++;
failsafe_clocks++;

if ( m_clock == 12)
m_clock = 0;
Expand Down

0 comments on commit bc683df

Please sign in to comment.