Skip to content

Commit bc683df

Browse files
committed
Fix warnings
1 parent 9018c2d commit bc683df

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

platforms/shared/desktop/makefiles/Makefile.common

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ CFLAGS += -std=c99
3535

3636
DEBUG ?= 0
3737
ifeq ($(DEBUG), 1)
38+
BUILD_CONFIG = Debug
3839
CPPFLAGS +=-DDEBUG -g3
3940
else
41+
BUILD_CONFIG = Release
4042
CPPFLAGS +=-DNDEBUG -O3 -flto=auto
4143
LDFLAGS += -O3 -flto=auto
4244
endif
@@ -70,7 +72,7 @@ else
7072
endif
7173

7274
all: header $(TARGET)
73-
@echo Build complete for $(PLATFORM)
75+
@echo Build complete for $(PLATFORM) \($(BUILD_CONFIG)\)
7476

7577
$(TARGET): $(OBJECTS)
7678
$(CXX) -o $@ $(OBJECTS) $(LDFLAGS)

src/geargrafx_core.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ bool GeargrafxCore::RunToVBlank(u8* frame_buffer, s16* sample_buffer, int* sampl
9797

9898
m_huc6260->SetBuffer(frame_buffer);
9999
bool stop = false;
100-
int failsafe_clocks = 0;
101100

102101
do
103102
{
@@ -148,12 +147,8 @@ bool GeargrafxCore::RunToVBlank(u8* frame_buffer, s16* sample_buffer, int* sampl
148147
get_debug_state = true;
149148
}
150149
#endif
151-
// Failsafe: if the emulator is running too long, stop it
152-
// if (failsafe_clocks >= 150000)
153-
// stop = true;
154150

155151
m_clock++;
156-
failsafe_clocks++;
157152

158153
if ( m_clock == 12)
159154
m_clock = 0;

0 commit comments

Comments
 (0)