From: johanknol Date: Mon, 12 Nov 2001 19:46:16 +0000 (+0000) Subject: extra warnings for excess scalar/array/struct initializers X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=bf85b4cb3c675c32d900f2f8c0e42b13086e7e98;p=fw%2Fsdcc extra warnings for excess scalar/array/struct initializers git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1577 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/support/Util/SDCCerr.c b/support/Util/SDCCerr.c index 605de30b..12816428 100644 --- a/support/Util/SDCCerr.c +++ b/support/Util/SDCCerr.c @@ -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 * " }, }; /* diff --git a/support/Util/SDCCerr.h b/support/Util/SDCCerr.h index b9e3c22d..ae338fac 100644 --- a/support/Util/SDCCerr.h +++ b/support/Util/SDCCerr.h @@ -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.