fixed compiler warning when building without DEBUG symbol
authorHolger Schemel <info@artsoft.org>
Sun, 7 Oct 2018 13:30:55 +0000 (15:30 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 7 Oct 2018 13:30:55 +0000 (15:30 +0200)
src/editor.c

index 2a34d4c..e2c9e90 100644 (file)
@@ -8308,6 +8308,7 @@ static void CopyElementPropertiesToGame(int element)
     CopyClassicElementPropertiesToGame(element);
 }
 
+#if DEBUG
 static void CheckElementDescriptions(void)
 {
   int i;
@@ -8317,6 +8318,7 @@ static void CheckElementDescriptions(void)
       Error(ERR_WARN, "no element description file for element '%s'",
            EL_NAME(i));
 }
+#endif
 
 static int getMaxEdFieldX(boolean has_scrollbar)
 {