From 0f57299d37b292bdfdc4e2a0d0fe00935b8c1931 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Mon, 1 May 2006 16:51:19 +0000 Subject: 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 From-SVN: r113418 --- gcc/c-common.h | 1 - 1 file changed, 1 deletion(-) (limited to 'gcc/c-common.h') diff --git a/gcc/c-common.h b/gcc/c-common.h index 5636685..2d4248a 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); -- cgit v1.1