Browse Source

Supressing compilation warning.

David Piuva 1 year ago
parent
commit
cdd57ceb58
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Source/DFPSR/machine/VirtualMachine.cpp

+ 3 - 1
Source/DFPSR/machine/VirtualMachine.cpp

@@ -303,7 +303,9 @@ void VirtualMachine::addCallInstructions(const List<String>& arguments) {
 	addMachineWord([](VirtualMachine& machine, PlanarMemory& memory, const List<VMA>& args) {
 		// Get the method to call
 		int calledMethodIndex = args[0].value.getMantissa();
-		int oldMethodIndex = memory.current.methodIndex;
+		#ifdef VIRTUAL_MACHINE_DEBUG_PRINT
+			int oldMethodIndex = memory.current.methodIndex;
+		#endif
 		Method* calledMethod = &machine.methods[calledMethodIndex];
 		#ifdef VIRTUAL_MACHINE_DEBUG_PRINT
 			printText(U"Calling \"", calledMethod->name, U"\".\n");