compiler/ecs: Marking '_class' as unused in symbol loader to avoid warnings
[sdk] / compiler / ecs / ecs.ec
index 920aa8d..a583d36 100644 (file)
@@ -466,7 +466,7 @@ static void WriteMain(const char * fileName)
       }
 
       //if(nonInst || thisAppClass)    // We use it all the time to get "Application" for the exit code now...
-         f.Puts("   Class _class;\n");
+         f.Puts("   __attribute__((unused)) Class _class;\n");
 
       if(anyMethod)
          f.Puts("   Method method;\n");