Added a new warning message "W_CAST_STRUCT_PTR" when
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 4 Nov 2001 18:26:38 +0000 (18:26 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 4 Nov 2001 18:26:38 +0000 (18:26 +0000)
pointers to different structures are CAST

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1498 4a8a32a2-be11-0410-ad9d-d568d2c75423

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

index 0b45800ae7a171829aaa9e06373bf99582a32b53..605de30bb7469a87ab96ee8cdd5bece8c739d120 100644 (file)
@@ -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 * " }
 };
 
 /*
index aa76231ffbbb75d8ca4c4a984ab55a8c9024f248..b9e3c22d675c99e22a123ccafdc7d3e9f496ae22 100644 (file)
@@ -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.