compiler; deps/libffi: Getting rid of warnings
authorJerome St-Louis <jerome@ecere.com>
Tue, 21 Aug 2012 21:23:56 +0000 (17:23 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 21 Aug 2012 21:23:56 +0000 (17:23 -0400)
compiler/bootstrap/libec/bootstrap/pass15.c
compiler/libec/locale/ec.pot
compiler/libec/src/loadSymbols.ec
compiler/libec/src/pass15.ec
deps/libffi-3.0.11/src/prep_cif.c
ide/locale/ide.pot

index 0bb9d2d..d3bd323 100644 (file)
@@ -11808,6 +11808,8 @@ extern struct Initializer * MkInitializerList(struct __ecereNameSpace__ecere__sy
 
 extern char *  __ecereNameSpace__ecere__com__PrintString(struct __ecereNameSpace__ecere__com__Class * class, void * object, ...);
 
+extern char *  sourceFile;
+
 void __ecereMethod___ecereNameSpace__ecere__sys__OldList_Clear(struct __ecereNameSpace__ecere__sys__OldList * this);
 
 void ProcessExpressionType(struct Expression * exp)
@@ -12421,7 +12423,7 @@ exp->op.exp2->expType->truth = 0x1;
 }
 else if(exp->op.exp1 && exp->op.exp2 && ((useSideType) || ((!type1 || type1->kind != 8 || !strcmp(type1->_class->string, "String")) && (!type2 || type2->kind != 8 || !strcmp(type2->_class->string, "String")))))
 {
-if(type1 && type2 && ((type1->kind == 8 && strcmp(type1->_class->string, "String")) == (type2->kind == 8 && strcmp(type2->_class->string, "String"))))
+if(type1 && type2 && ((type1->kind == 8 && type1->_class && strcmp(type1->_class->string, "String")) == (type2->kind == 8 && type2->_class && strcmp(type2->_class->string, "String"))))
 {
 if(exp->op.exp2->destType)
 FreeType(exp->op.exp2->destType);
@@ -14404,6 +14406,7 @@ if(inCompiler)
 PrintExpression(exp, expString);
 __ecereNameSpace__ecere__sys__ChangeCh(expString, '\n', ' ');
 }
+if(strcmp(sourceFile, "src\\lexer.ec") && strcmp(sourceFile, "src/lexer.ec"))
 Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString(__thisModule, "incompatible expression %s (%s); expected %s\n", (((void *)0))), expString, type1, type2);
 FreeType(exp->expType);
 exp->destType->refCount++;
index 550bc5d..e46cfbe 100644 (file)
@@ -31,12 +31,12 @@ msgstr ":%d:%d: warning: "
 msgid "Array size not constant int (%s)\n"
 msgstr "Array size not constant int (%s)\n"
 
-#: ./src/pass15.ec:10359
+#: ./src/pass15.ec:10361
 msgid "Assigning list initializer to non list\n"
 msgstr "Assigning list initializer to non list\n"
 
 #: ./src/pass15.ec:10025
-#: ./src/pass15.ec:11070
+#: ./src/pass15.ec:11072
 msgid "Couldn't determine type of array elements\n"
 msgstr "Couldn't determine type of array elements\n"
 
@@ -52,7 +52,7 @@ msgstr "Couldn't open %s\n"
 msgid "Expecting class specifier\n"
 msgstr "Expecting class specifier\n"
 
-#: ./src/pass15.ec:11228
+#: ./src/pass15.ec:11230
 msgid "Expression is not a container\n"
 msgstr "Expression is not a container\n"
 
@@ -64,12 +64,12 @@ msgstr "Includes nested too deeply"
 msgid "Incompatible virtual function %s\n"
 msgstr "Incompatible virtual function %s\n"
 
-#: ./src/pass15.ec:11502
-#: ./src/pass15.ec:11577
+#: ./src/pass15.ec:11504
+#: ./src/pass15.ec:11579
 msgid "Invalid object specified and not inside a class\n"
 msgstr "Invalid object specified and not inside a class\n"
 
-#: ./src/pass15.ec:11410
+#: ./src/pass15.ec:11412
 msgid "Invalid watched object\n"
 msgstr "Invalid watched object\n"
 
@@ -94,11 +94,11 @@ msgstr "Multiple field index requires a name\n"
 msgid "No database table defined in this module or database_open already used.\n"
 msgstr "No database table defined in this module or database_open already used.\n"
 
-#: ./src/pass15.ec:11423
+#: ./src/pass15.ec:11425
 msgid "No observer specified and not inside a _class\n"
 msgstr "No observer specified and not inside a _class\n"
 
-#: ./src/pass15.ec:11580
+#: ./src/pass15.ec:11582
 msgid "No observer specified and not inside a class\n"
 msgstr "No observer specified and not inside a class\n"
 
@@ -112,9 +112,9 @@ msgid "Non-static %s making use of a static class\n"
 msgstr "Non-static %s making use of a static class\n"
 
 #: ./src/pass1.ec:1035
-#: ./src/pass15.ec:11405
-#: ./src/pass15.ec:11477
-#: ./src/pass15.ec:11566
+#: ./src/pass15.ec:11407
+#: ./src/pass15.ec:11479
+#: ./src/pass15.ec:11568
 msgid "Property %s not found in class %s\n"
 msgstr "Property %s not found in class %s\n"
 
@@ -190,7 +190,7 @@ msgstr "couldn't determine type of %s; expected %s\n"
 #: ./src/pass15.ec:8315
 #: ./src/pass15.ec:8327
 #: ./src/pass15.ec:10112
-#: ./src/pass15.ec:10186
+#: ./src/pass15.ec:10188
 msgid "couldn't determine type of %s\n"
 msgstr "couldn't determine type of %s\n"
 
@@ -209,7 +209,7 @@ msgid "different levels of indirection\n"
 msgstr "different levels of indirection\n"
 
 #: ./src/pass15.ec:7786
-#: ./src/pass15.ec:10141
+#: ./src/pass15.ec:10143
 msgid "incompatible expression %s (%s); expected %s\n"
 msgstr "incompatible expression %s (%s); expected %s\n"
 
@@ -299,6 +299,13 @@ msgid "redefinition of destructor for class %s\n"
 msgstr "redefinition of destructor for class %s\n"
 
 #: ./src/ecdefs.ec:1282
+#: ./src/grammar.ec:3084
+#: ./src/grammar.ec:3085
+#: ./src/grammar.ec:3086
+#: ./src/grammar.ec:3087
+#: ./src/grammar.ec:3088
+#: ./src/grammar.ec:3089
+#: ./src/grammar.ec:3090
 msgid "syntax error\n"
 msgstr "syntax error\n"
 
@@ -322,7 +329,7 @@ msgstr "too many parameters\n"
 msgid "undefined class %s\n"
 msgstr "undefined class %s\n"
 
-#: ./src/pass15.ec:10177
+#: ./src/pass15.ec:10179
 msgid "unresolved identifier %s::%s\n"
 msgstr "unresolved identifier %s::%s\n"
 
@@ -331,7 +338,7 @@ msgid "unresolved identifier %s; expected %s\n"
 msgstr "unresolved identifier %s; expected %s\n"
 
 #: ./src/pass15.ec:10110
-#: ./src/pass15.ec:10179
+#: ./src/pass15.ec:10181
 msgid "unresolved identifier %s\n"
 msgstr "unresolved identifier %s\n"
 
index 12e604e..2f68508 100644 (file)
@@ -7,7 +7,7 @@ public void SetGlobalData(NameSpace * nameSpace) { globalData = nameSpace; }
 
 OldList dataRedefinitions;
 
-#define MAX_INCLUDE_DEPTH 10
+// #define MAX_INCLUDE_DEPTH 10
 
 extern char sourceFileStack[MAX_INCLUDE_DEPTH][MAX_LOCATION];
 extern int include_stack_ptr;
index b035795..fb2ff28 100644 (file)
@@ -10138,7 +10138,9 @@ void ProcessExpressionType(Expression exp)
 #ifdef _DEBUG
                   CheckExpressionType(exp, exp.destType, false);
 #endif
-                  Compiler_Warning($"incompatible expression %s (%s); expected %s\n", expString, type1, type2);
+                  // Flex generates code that triggers this, so we ignore it for a quiet sdk build:
+                  if(strcmp(sourceFile, "src\\lexer.ec") && strcmp(sourceFile, "src/lexer.ec"))
+                     Compiler_Warning($"incompatible expression %s (%s); expected %s\n", expString, type1, type2);
 
                   // TO CHECK: FORCING HERE TO HELP DEBUGGER
                   FreeType(exp.expType);
index eb68341..49a2aa6 100644 (file)
@@ -115,7 +115,7 @@ ffi_status FFI_HIDDEN ffi_prep_cif_core(ffi_cif *cif, ffi_abi abi,
   if (! (abi > FFI_FIRST_ABI && abi < FFI_LAST_ABI))
     return FFI_BAD_ABI;
 #else
-  if (! (abi > FFI_FIRST_ABI && abi < FFI_LAST_ABI || abi == FFI_THISCALL))
+  if (! ((abi > FFI_FIRST_ABI && abi < FFI_LAST_ABI) || abi == FFI_THISCALL))
     return FFI_BAD_ABI;
 #endif
 
index afeed08..ffa0e9c 100644 (file)
@@ -10,7 +10,7 @@ msgstr ""
 "Content-Transfer-Encoding: 8bit\n"
 "X-Poedit-Basepath: ../\n"
 
-#: ./src/project/Project.ec:1361
+#: ./src/project/Project.ec:1392
 msgid "   %s: No such file or directory\n"
 msgstr "   %s: No such file or directory\n"
 
@@ -337,7 +337,7 @@ msgstr "Build project"
 msgid "Builder"
 msgstr "Builder"
 
-#: ./src/project/Project.ec:1438
+#: ./src/project/Project.ec:1469
 msgid "Building library...\n"
 msgstr "Building library...\n"
 
@@ -411,7 +411,7 @@ msgstr "Cleaning project %s using the %s configuration...\n"
 msgid "Clear"
 msgstr "Clear"
 
-#: ./src/documents/PictureEdit.ec:278
+#: ./src/documents/PictureEdit.ec:279
 #: ./src/ide.ec:643
 #: ./src/ide.ec:833
 msgid "Close"
@@ -429,8 +429,8 @@ msgstr "Close IDE"
 msgid "Color Picker..."
 msgstr "Color Picker..."
 
-#: ./src/documents/PictureEdit.ec:90
-#: ./src/documents/PictureEdit.ec:272
+#: ./src/documents/PictureEdit.ec:91
+#: ./src/documents/PictureEdit.ec:273
 msgid "Color Table"
 msgstr "Color Table"
 
@@ -485,7 +485,7 @@ msgstr "Compiling single file %s in project %s using the %s configuration...\n"
 msgid "Compiling single file %s in project %s...\n"
 msgstr "Compiling single file %s in project %s...\n"
 
-#: ./src/project/Project.ec:1409
+#: ./src/project/Project.ec:1440
 msgid "Compiling...\n"
 msgstr "Compiling...\n"
 
@@ -508,6 +508,11 @@ msgstr "Condition"
 msgid "Configurations: "
 msgstr "Configurations: "
 
+#: ./src/designer/CodeEditor.ec:38
+#: ./src/designer/CodeEditor.ec:39
+msgid "Consolas"
+msgstr "Consolas"
+
 #: ./src/ProjectSettings.ec:2039
 msgid "Console Application"
 msgstr "Console Application"
@@ -526,11 +531,6 @@ msgstr "Couldn't create file."
 msgid "Couldn't read memory"
 msgstr "Couldn't read memory"
 
-#: ./src/designer/CodeEditor.ec:35
-#: ./src/designer/CodeEditor.ec:36
-msgid "Courier New"
-msgstr "Courier New"
-
 #: ./src/dialogs/NewProjectDialog.ec:215
 msgid "Create Form"
 msgstr "Create Form"
@@ -582,11 +582,11 @@ msgstr "Debugging compressed applications is not supported\n"
 msgid "Debugging stopped\n"
 msgstr "Debugging stopped\n"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:1109
+#: ./src/dialogs/GlobalSettingsDialog.ec:1110
 msgid "Default Compiler"
 msgstr "Default Compiler"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:1074
+#: ./src/dialogs/GlobalSettingsDialog.ec:1075
 msgid "Default Intermediate Objects Directory"
 msgstr "Default Intermediate Objects Directory"
 
@@ -594,7 +594,7 @@ msgstr "Default Intermediate Objects Directory"
 msgid "Default Name Space"
 msgstr "Default Name Space"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:1061
+#: ./src/dialogs/GlobalSettingsDialog.ec:1062
 msgid "Default Target Directory"
 msgstr "Default Target Directory"
 
@@ -616,7 +616,7 @@ msgstr "Delete %s"
 msgid "Delete Folder"
 msgstr "Delete Folder"
 
-#: ./src/project/Project.ec:1759
+#: ./src/project/Project.ec:1790
 msgid "Deleting target and object files..."
 msgstr "Deleting target and object files..."
 
@@ -694,11 +694,11 @@ msgstr "Editor"
 msgid "Empty string"
 msgstr "Empty string"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:802
+#: ./src/dialogs/GlobalSettingsDialog.ec:803
 msgid "Environment"
 msgstr "Environment"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:808
+#: ./src/dialogs/GlobalSettingsDialog.ec:809
 #: ./src/dialogs/WorkspaceSettings.ec:29
 msgid "Environment Variables"
 msgstr "Environment Variables"
@@ -707,7 +707,7 @@ msgstr "Environment Variables"
 msgid "Error creating directory"
 msgstr "Error creating directory"
 
-#: ./src/project/Project.ec:1707
+#: ./src/project/Project.ec:1738
 msgid "Error executing make (%s) command\n"
 msgstr "Error executing make (%s) command\n"
 
@@ -762,7 +762,7 @@ msgstr "Exit"
 msgid "Expression"
 msgstr "Expression"
 
-#: ./src/project/Project.ec:1562
+#: ./src/project/Project.ec:1593
 msgid "Fatal Error: child process terminated unexpectedly\n"
 msgstr "Fatal Error: child process terminated unexpectedly\n"
 
@@ -902,7 +902,7 @@ msgstr "Generating Visual Studio Project..."
 msgid "Generating Visual Studio Solution..."
 msgstr "Generating Visual Studio Solution..."
 
-#: ./src/project/Project.ec:1414
+#: ./src/project/Project.ec:1445
 msgid "Generating symbols...\n"
 msgstr "Generating symbols...\n"
 
@@ -1037,7 +1037,7 @@ msgstr "Keep caret visible (move along) when scrolling"
 msgid "Lead Architect and Developer"
 msgstr "Lead Architect and Developer"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:958
+#: ./src/dialogs/GlobalSettingsDialog.ec:959
 msgid "Libraries to exclude:"
 msgstr "Libraries to exclude:"
 
@@ -1053,7 +1053,7 @@ msgstr "License"
 msgid "Linker"
 msgstr "Linker"
 
-#: ./src/project/Project.ec:1474
+#: ./src/project/Project.ec:1505
 msgid "Linker Error"
 msgstr "Linker Error"
 
@@ -1061,7 +1061,7 @@ msgstr "Linker Error"
 msgid "Linker Options"
 msgstr "Linker Options"
 
-#: ./src/project/Project.ec:1427
+#: ./src/project/Project.ec:1458
 msgid "Linking...\n"
 msgstr "Linking...\n"
 
@@ -1235,7 +1235,7 @@ msgstr "Null string"
 msgid "Null type for \"%s\""
 msgstr "Null type for \"%s\""
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:862
+#: ./src/dialogs/GlobalSettingsDialog.ec:863
 msgid "Number of parallel build jobs"
 msgstr "Number of parallel build jobs"
 
@@ -1297,7 +1297,7 @@ msgstr "Open..."
 msgid "Optimization"
 msgstr "Optimization"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:838
+#: ./src/dialogs/GlobalSettingsDialog.ec:839
 msgid "Options"
 msgstr "Options"
 
@@ -1353,7 +1353,7 @@ msgstr "Pre-build Commands"
 msgid "Preprocessor Definitions"
 msgstr "Preprocessor Definitions"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:977
+#: ./src/dialogs/GlobalSettingsDialog.ec:978
 msgid "Preprocessor directives:"
 msgstr "Preprocessor directives:"
 
@@ -1370,7 +1370,7 @@ msgctxt "Menu"
 msgid "Project"
 msgstr "Project"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:1055
+#: ./src/dialogs/GlobalSettingsDialog.ec:1056
 #: ./src/dialogs/ProjectTabSettings.ec:8
 msgid "Project"
 msgstr "Project"
@@ -1806,7 +1806,7 @@ msgstr "Target Directory"
 msgid "Target Name"
 msgstr "Target Name"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:844
+#: ./src/dialogs/GlobalSettingsDialog.ec:845
 msgid "Target Platform"
 msgstr "Target Platform"
 
@@ -1816,7 +1816,7 @@ msgstr "Target Platform"
 msgid "Target Type"
 msgstr "Target Type"
 
-#: ./src/project/Project.ec:1763
+#: ./src/project/Project.ec:1794
 msgid "Target and object files deleted\n"
 msgstr "Target and object files deleted\n"
 
@@ -1965,11 +1965,11 @@ msgstr "Untitled %d"
 msgid "Updating "
 msgstr "Updating "
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:901
+#: ./src/dialogs/GlobalSettingsDialog.ec:902
 msgid "Use ccache"
 msgstr "Use ccache"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:919
+#: ./src/dialogs/GlobalSettingsDialog.ec:920
 msgid "Use distcc"
 msgstr "Use distcc"
 
@@ -2038,7 +2038,7 @@ msgid "With contributions from..."
 msgstr "With contributions from..."
 
 #: ./src/dialogs/FindInFilesDialog.ec:441
-#: ./src/dialogs/GlobalSettingsDialog.ec:1103
+#: ./src/dialogs/GlobalSettingsDialog.ec:1104
 #: ./src/dialogs/WorkspaceSettings.ec:6
 msgid "Workspace"
 msgstr "Workspace"
@@ -2067,7 +2067,7 @@ msgstr "Would you like to save changes made to the project options?"
 msgid "Would you like to save changes made to the workspace options?"
 msgstr "Would you like to save changes made to the workspace options?"
 
-#: ./src/project/Project.ec:1440
+#: ./src/project/Project.ec:1471
 msgid "Writing symbol loader...\n"
 msgstr "Writing symbol loader...\n"
 
@@ -2087,12 +2087,12 @@ msgstr "You must provide a valid source directory in order to place a breakpoint
 msgid "You must specify a search location."
 msgstr "You must specify a search location."
 
-#: ./src/project/Project.ec:1292
-#: ./src/project/Project.ec:1554
+#: ./src/project/Project.ec:1323
+#: ./src/project/Project.ec:1585
 msgid "\nBuild cancelled by user.\n"
 msgstr "\nBuild cancelled by user.\n"
 
-#: ./src/dialogs/GlobalSettingsDialog.ec:939
+#: ./src/dialogs/GlobalSettingsDialog.ec:940
 msgid "distcc hosts"
 msgstr "distcc hosts"
 
@@ -2132,11 +2132,11 @@ msgstr "err: Unable to create FIFO %s\n"
 msgid "err: Unable to open FIFO %s for read\n"
 msgstr "err: Unable to open FIFO %s for read\n"
 
-#: ./src/project/Project.ec:1569
+#: ./src/project/Project.ec:1600
 msgid "error"
 msgstr "error"
 
-#: ./src/project/Project.ec:1569
+#: ./src/project/Project.ec:1600
 msgid "errors"
 msgstr "errors"
 
@@ -2154,11 +2154,11 @@ msgstr "found"
 msgid "inside %s, %s\n"
 msgstr "inside %s, %s\n"
 
-#: ./src/project/Project.ec:1571
+#: ./src/project/Project.ec:1602
 msgid "no error, "
 msgstr "no error, "
 
-#: ./src/project/Project.ec:1576
+#: ./src/project/Project.ec:1607
 msgid "no warning\n"
 msgstr "no warning\n"
 
@@ -2183,11 +2183,11 @@ msgstr "s were "
 msgid "unknown source\n"
 msgstr "unknown source\n"
 
-#: ./src/project/Project.ec:1574
+#: ./src/project/Project.ec:1605
 msgid "warning"
 msgstr "warning"
 
-#: ./src/project/Project.ec:1574
+#: ./src/project/Project.ec:1605
 msgid "warnings"
 msgstr "warnings"