From: Stas'M Date: Sat, 25 Aug 2018 15:29:55 +0000 (+0300) Subject: Main: Fix directives to hide compiler notices X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=505bae2ecaaedd023c6f4970928a14cbae1313fa;p=d2df-sdl.git Main: Fix directives to hide compiler notices --- diff --git a/src/game/g_main.pas b/src/game/g_main.pas index bb394f1..c789caf 100644 --- a/src/game/g_main.pas +++ b/src/game/g_main.pas @@ -56,7 +56,7 @@ var procedure Main(); var sdlflags: LongWord; -{$IFNDEF HEADLESS} +{$IF not DEFINED(HEADLESS) and DEFINED(ENABLE_HOLMES)} flexloaded: Boolean; {$ENDIF} begin diff --git a/src/game/g_window.pas b/src/game/g_window.pas index b83cdad..c3f6871 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -892,8 +892,10 @@ var {$ENDIF} arg: AnsiString; mdfo: TStream; + {$IFDEF ENABLE_HOLMES} itmp: Integer; valres: Word; + {$ENDIF} begin {$IFDEF HEADLESS} e_NoGraphics := true;