Commit bd5b5c85 by Richard Kenner

(build_indirect_ref): Don't give warning for dereferencing void * if

evaluation is being skipped.

From-SVN: r13235
parent 47ee6837
...@@ -1320,7 +1320,7 @@ build_indirect_ref (ptr, errorstring) ...@@ -1320,7 +1320,7 @@ build_indirect_ref (ptr, errorstring)
error ("dereferencing pointer to incomplete type"); error ("dereferencing pointer to incomplete type");
return error_mark_node; return error_mark_node;
} }
if (TREE_CODE (t) == VOID_TYPE) if (TREE_CODE (t) == VOID_TYPE && skip_evaluation == 0)
warning ("dereferencing `void *' pointer"); warning ("dereferencing `void *' pointer");
/* We *must* set TREE_READONLY when dereferencing a pointer to const, /* We *must* set TREE_READONLY when dereferencing a pointer to const,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment