extra warnings for excess scalar/array/struct initializers
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 12 Nov 2001 19:46:16 +0000 (19:46 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 12 Nov 2001 19:46:16 +0000 (19:46 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1577 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/Util/SDCCerr.c
support/Util/SDCCerr.h

index 605de30bb7469a87ab96ee8cdd5bece8c739d120..12816428d6badfbb5a817e331f0d4f7ae15fa1a6 100644 (file)
@@ -348,8 +348,8 @@ struct
     "both signed and unsigned specified for %s '%s'" },
 { E_TWO_OR_MORE_STORAGE_CLASSES, ERROR_LEVEL_ERROR,
     "two or more storage classes in declaration for '%s'" },
-{ W_EXESS_ARRAY_INITIALIZERS, ERROR_LEVEL_WARNING,
-    "excess elements in array initializer after `%s' at line %d" },
+{ W_EXCESS_INITIALIZERS, ERROR_LEVEL_WARNING,
+    "excess elements in %s initializer after `%s' at line %d" },
 { E_ARGUMENT_MISSING, ERROR_LEVEL_ERROR,
    "Option %s requires an argument." },
 { W_STRAY_BACKSLASH, ERROR_LEVEL_WARNING,
@@ -369,7 +369,7 @@ struct
 { W_SYMBOL_NAME_TOO_LONG, ERROR_LEVEL_WARNING,
     "symbol name too long, truncated to %d chars" },
 { W_CAST_STRUCT_PTR,ERROR_LEVEL_WARNING,
-         "cast of struct %s * to struct %s * " }
+         "cast of struct %s * to struct %s * " },
 };
 
 /*
index b9e3c22d675c99e22a123ccafdc7d3e9f496ae22..ae338face3e610b8fb22ee3da1298b229ad81996 100644 (file)
@@ -162,7 +162,7 @@ SDCCERR - SDCC Standard error handler
 #define E_LONG_AND_SHORT_INVALID  144    /* long and short invalid for .. */
 #define E_SIGNED_AND_UNSIGNED_INVALID 145 /* signed and unsigned invalid for .. */
 #define E_TWO_OR_MORE_STORAGE_CLASSES 146
-#define W_EXESS_ARRAY_INITIALIZERS 147 /* too much initializers for array */
+#define W_EXCESS_INITIALIZERS 147 /* too much initializers for array */
 #define        E_ARGUMENT_MISSING      148     /* Option requires an argument. */
 #define W_STRAY_BACKSLASH 149
 #define W_NEWLINE_IN_STRING 150 
@@ -172,7 +172,7 @@ SDCCERR - SDCC Standard error handler
 #define W_INTEGRAL2PTR_NOCAST 154
 #define W_PTR2INTEGRAL_NOCAST 155
 #define W_SYMBOL_NAME_TOO_LONG 156
-#define W_CAST_STRUCT_PTR   157                /* pointer to different structure types */
+#define W_CAST_STRUCT_PTR 157 /* pointer to different structure types */
 
 /** Describes the maximum error level that will be logged.  Any level
  *  includes all of the levels listed after it.