aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-05-01 16:51:19 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-05-01 16:51:19 +0000
commit0f57299d37b292bdfdc4e2a0d0fe00935b8c1931 (patch)
tree5fe7571023d4ea5ca8d0e554a9a317466e1d435f /gcc/c-common.c
parentf0913ab8d6b3990d68fc498fd2f9d6407fd10536 (diff)
downloadgcc-0f57299d37b292bdfdc4e2a0d0fe00935b8c1931.zip
gcc-0f57299d37b292bdfdc4e2a0d0fe00935b8c1931.tar.gz
gcc-0f57299d37b292bdfdc4e2a0d0fe00935b8c1931.tar.bz2
c-typeck.c (parser_build_binary_op): Don't call the function unsigned_conversion_warning to spot operand/result type...
* 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. Co-Authored-By: Joseph Myers <joseph@codesourcery.com> From-SVN: r113418
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 5e54660..fc9def8 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -953,7 +953,7 @@ overflow_warning (tree value)
Invoke this function on every expression that might be implicitly
converted to an unsigned type. */
-void
+static void
unsigned_conversion_warning (tree result, tree operand)
{
tree type = TREE_TYPE (result);