From 8a58ddb8bce58f49879024a8c9557dd773e8d813 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Mon, 17 Oct 2005 09:01:45 +0000 Subject: [PATCH] Pointer is volatile, not the return type. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1910 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/uqmdebug.c | 2 +- sc2/src/sc2code/uqmdebug.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/uqmdebug.c b/sc2/src/sc2code/uqmdebug.c index 71b084b64..a964b6725 100644 --- a/sc2/src/sc2code/uqmdebug.c +++ b/sc2/src/sc2code/uqmdebug.c @@ -58,7 +58,7 @@ static void dumpPlanetTypeCallback (int index, const PlanetFrame *planet, BOOLEAN instantMove = FALSE; BOOLEAN disableInteractivity = FALSE; -volatile void (*debugHook) (void) = NULL; +void (* volatile debugHook) (void) = NULL; void diff --git a/sc2/src/sc2code/uqmdebug.h b/sc2/src/sc2code/uqmdebug.h index 3e69e10b3..66fdd7cc7 100644 --- a/sc2/src/sc2code/uqmdebug.h +++ b/sc2/src/sc2code/uqmdebug.h @@ -29,7 +29,7 @@ extern BOOLEAN disableInteractivity; // If a function is assigned to this, it will be called from the main loop. -extern volatile void (*debugHook) (void); +extern void (* volatile debugHook) (void); // Called when the debug key (symbol 'Debug' in the keys.cfg) is pressed.