diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-01 16:51:19 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-01 16:51:19 +0000 |
commit | ceda77d2d2e3b85e3c12be175d6f0e3aa9a10773 (patch) | |
tree | 5fe7571023d4ea5ca8d0e554a9a317466e1d435f /gcc/c-common.h | |
parent | 55c1bfb1a91171e5e94d9d6009e5225a3cea4079 (diff) | |
download | gcc-ceda77d2d2e3b85e3c12be175d6f0e3aa9a10773.tar.gz |
* c-typeck.c (parser_build_binary_op): Don't call the function
unsigned_conversion_warning to spot operand/result type overflow.
(build_binary_op): Instead, call convert_and_check instead of
convert to report the problem when the operands are promoted.
* c-common.c (unsigned_conversion_warning): Make static.
* c-common.h (unsigned_conversion_warning): Delete prototype.
* gcc.dg/Wconversion-3.c: New test case.
* gcc.dg/Wconversion-4.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113418 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index 5636685efed..2d4248a49fd 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -659,7 +659,6 @@ extern void strict_aliasing_warning(tree, tree, tree); extern void empty_body_warning (tree, tree); extern tree convert_and_check (tree, tree); extern void overflow_warning (tree); -extern void unsigned_conversion_warning (tree, tree); extern bool c_determine_visibility (tree); extern bool same_scalar_type_ignoring_signedness (tree, tree); |