From: sandeep Date: Sun, 4 Nov 2001 18:26:38 +0000 (+0000) Subject: Added a new warning message "W_CAST_STRUCT_PTR" when X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=181f8a53e3a67ee79b897f1e0aa0e03e3c0f5195;p=fw%2Fsdcc Added a new warning message "W_CAST_STRUCT_PTR" when pointers to different structures are CAST git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1498 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/support/Util/SDCCerr.c b/support/Util/SDCCerr.c index 0b45800a..605de30b 100644 --- a/support/Util/SDCCerr.c +++ b/support/Util/SDCCerr.c @@ -368,6 +368,8 @@ struct "converting pointer to integral without a cast" }, { 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 * " } }; /* diff --git a/support/Util/SDCCerr.h b/support/Util/SDCCerr.h index aa76231f..b9e3c22d 100644 --- a/support/Util/SDCCerr.h +++ b/support/Util/SDCCerr.h @@ -172,6 +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 */ /** Describes the maximum error level that will be logged. Any level * includes all of the levels listed after it.