compiler/ecs: Marking '_class' as unused in symbol loader to avoid warnings
authorJerome St-Louis <jerome@ecere.com>
Sun, 8 Jun 2014 01:53:52 +0000 (21:53 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sun, 8 Jun 2014 01:54:23 +0000 (21:54 -0400)
compiler/bootstrap/ecc/bootstrap/ecc.main.c
compiler/bootstrap/ecere/bootstrap/ecere.main.c
compiler/bootstrap/ecp/bootstrap/ecp.main.c
compiler/bootstrap/ecs/bootstrap/ecs.c
compiler/bootstrap/ecs/bootstrap/ecs.main.c
compiler/bootstrap/libec/bootstrap/ec.main.c
compiler/ecs/ecs.ec

index 5eb2822..17f7d58 100644 (file)
@@ -593,7 +593,7 @@ int main(int _argc, char * _argv[])
 {
 int exitCode;
 struct __ecereNameSpace__ecere__com__Instance * module;
-struct __ecereNameSpace__ecere__com__Class * _class;
+__attribute__((unused)) struct __ecereNameSpace__ecere__com__Class * _class;
 struct __ecereNameSpace__ecere__com__Method * method;
 struct __ecereNameSpace__ecere__com__Property * _property;
 
index 36f8400..cfc6e0a 100644 (file)
@@ -725,7 +725,7 @@ extern void __ecereNameSpace__ecere__LoadTranslatedStrings(const char * moduleNa
 
 unsigned int __ecereDll_Load_ecere(struct __ecereNameSpace__ecere__com__Instance * module)
 {
-struct __ecereNameSpace__ecere__com__Class * _class;
+__attribute__((unused)) struct __ecereNameSpace__ecere__com__Class * _class;
 struct __ecereNameSpace__ecere__com__Method * method;
 struct __ecereNameSpace__ecere__com__Property * _property;
 
index b120919..eb6c625 100644 (file)
@@ -623,7 +623,7 @@ int main(int _argc, char * _argv[])
 {
 int exitCode;
 struct __ecereNameSpace__ecere__com__Instance * module;
-struct __ecereNameSpace__ecere__com__Class * _class;
+__attribute__((unused)) struct __ecereNameSpace__ecere__com__Class * _class;
 struct __ecereNameSpace__ecere__com__Method * method;
 struct __ecereNameSpace__ecere__com__Property * _property;
 
index a7da8bc..c89da6b 100644 (file)
@@ -1191,7 +1191,7 @@ __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpa
 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
 
 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
-})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, "   Class _class;\n");
+})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, "   __attribute__((unused)) Class _class;\n");
 if(anyMethod)
 ((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char *  string))__extension__ ({
 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
index 240d3ce..f5a0a98 100644 (file)
@@ -635,7 +635,7 @@ int main(int _argc, char * _argv[])
 {
 int exitCode;
 struct __ecereNameSpace__ecere__com__Instance * module;
-struct __ecereNameSpace__ecere__com__Class * _class;
+__attribute__((unused)) struct __ecereNameSpace__ecere__com__Class * _class;
 struct __ecereNameSpace__ecere__com__Method * method;
 struct __ecereNameSpace__ecere__com__Property * _property;
 
index 210fd5c..8a8c0e9 100644 (file)
@@ -755,7 +755,7 @@ extern void __ecereNameSpace__ecere__LoadTranslatedStrings(const char * moduleNa
 
 unsigned int __ecereDll_Load_ec(struct __ecereNameSpace__ecere__com__Instance * module)
 {
-struct __ecereNameSpace__ecere__com__Class * _class;
+__attribute__((unused)) struct __ecereNameSpace__ecere__com__Class * _class;
 struct __ecereNameSpace__ecere__com__Method * method;
 struct __ecereNameSpace__ecere__com__Property * _property;
 
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");