]> andersk Git - splint.git/commitdiff
Fixed internal error for stray type names in structure field declarations.
authorevans1629 <evans1629>
Sun, 17 Mar 2002 04:44:16 +0000 (04:44 +0000)
committerevans1629 <evans1629>
Sun, 17 Mar 2002 04:44:16 +0000 (04:44 +0000)
src/clabstract.c

index 0a4edb4170bed52f718934c2fba89e0e76ca21eb..bf9e58fd850b4d41f9540c97e59431e233920ac7 100644 (file)
@@ -1088,12 +1088,6 @@ fixUnnamedDecl (qtype q)
 
   if (ctype_isStruct (ct) || ctype_isUnion (ct))
     {
-      /* evans 2002-03-16: this seems like a really bad idea!
-      uentryList res = ctype_getFields (ct);
-
-      return (uentryList_copy (res));
-      */
-
       return uentryList_single (uentry_makeUnnamedVariable (ct));
     }
   else if (ctype_isEnum (ct))
@@ -1102,8 +1096,11 @@ fixUnnamedDecl (qtype q)
       return uentryList_undefined;
     }
   else
-    {      
-      BADBRANCHCONT;
+    { 
+      voptgenerror 
+       (FLG_SYNTAX,
+        message ("Type name in field declarations: %s", qtype_unparse (q)),
+        g_currentloc);
     }
 
   return uentryList_undefined;
This page took 0.040236 seconds and 5 git commands to generate.