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 2a34d4c3bcb771e9a89cbaec654b0f2e598bca1d..e2c9e90c8ea599798020914b77f99d0a43604560 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)
 {