projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47ee683
)
(build_indirect_ref): Don't give warning for dereferencing void * if
author
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 7 Dec 1996 22:53:42 +0000
(17:53 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 7 Dec 1996 22:53:42 +0000
(17:53 -0500)
evaluation is being skipped.
From-SVN: r13235
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index a5a5b009b98032aefc6e92d8a2506eb20cb5adc7..7e5608c2c0dbad423b8660fb415d93cdfcf391ea 100644
(file)
--- a/
gcc/c-typeck.c
+++ b/
gcc/c-typeck.c
@@
-1320,7
+1320,7
@@
build_indirect_ref (ptr, errorstring)
error ("dereferencing pointer to incomplete type");
return error_mark_node;
}
- if (TREE_CODE (t) == VOID_TYPE)
+ if (TREE_CODE (t) == VOID_TYPE
&& skip_evaluation == 0
)
warning ("dereferencing `void *' pointer");
/* We *must* set TREE_READONLY when dereferencing a pointer to const,