diff --git a/webshell/tests/viewer/nsMacMain.cpp b/webshell/tests/viewer/nsMacMain.cpp index 97de8c15776..5a94f193ebe 100644 --- a/webshell/tests/viewer/nsMacMain.cpp +++ b/webshell/tests/viewer/nsMacMain.cpp @@ -83,11 +83,6 @@ const MessageT cmd_Quit = 10; // nil const MessageT cmd_Preferences = 27; // nil -enum -{ -}; - - enum { menu_First = 128, @@ -446,10 +441,13 @@ int main(int argc, char **argv) InitializeMacToolbox(); #endif - // Install an a Quit AppleEvent handler. - OSErr err = AEInstallEventHandler(kCoreEventClass, kAEQuitApplication, - NewAEEventHandlerUPP(handleQuitApplication), - 0, false); + // Install a Quit AppleEvent handler. +#ifdef DEBUG + OSErr err = +#endif + AEInstallEventHandler(kCoreEventClass, kAEQuitApplication, + NewAEEventHandlerUPP(handleQuitApplication), 0, + false); NS_ASSERTION((err==noErr), "AEInstallEventHandler failed"); #ifdef XP_MACOSX