Commit 18a7cd24 by Jason Merrill Committed by Jason Merrill

call.c (joust): Disable warnings until they can be moved to the right place.

	* call.c (joust): Disable warnings until they can be moved to the
	right place.

From-SVN: r15450
parent 01d8acec
Mon Sep 15 11:52:13 1997 Jason Merrill <jason@yorick.cygnus.com>
* call.c (joust): Disable warnings until they can be moved to the
right place.
Fri Sep 12 16:11:13 1997 Per Bothner <bothner@cygnus.com> Fri Sep 12 16:11:13 1997 Per Bothner <bothner@cygnus.com>
* Makefile.in, config-lang.in: Convert to autoconf. * Makefile.in, config-lang.in: Convert to autoconf.
......
...@@ -5977,6 +5977,7 @@ joust (cand1, cand2) ...@@ -5977,6 +5977,7 @@ joust (cand1, cand2)
if (comp != 0) if (comp != 0)
{ {
#if 0 /* move this warning to tourney. */
if (warn_sign_promo if (warn_sign_promo
&& ICS_RANK (t1) + ICS_RANK (t2) == STD_RANK + PROMO_RANK && ICS_RANK (t1) + ICS_RANK (t2) == STD_RANK + PROMO_RANK
&& TREE_CODE (t1) == STD_CONV && TREE_CODE (t1) == STD_CONV
...@@ -6000,6 +6001,7 @@ joust (cand1, cand2) ...@@ -6000,6 +6001,7 @@ joust (cand1, cand2)
type, type1, type2); type, type1, type2);
cp_warning (" in call to `%D'", DECL_NAME (cand1->fn)); cp_warning (" in call to `%D'", DECL_NAME (cand1->fn));
} }
#endif
if (winner && comp != winner) if (winner && comp != winner)
{ {
...@@ -6010,6 +6012,7 @@ joust (cand1, cand2) ...@@ -6010,6 +6012,7 @@ joust (cand1, cand2)
} }
} }
#if 0 /* move this warning to tourney. */
/* warn about confusing overload resolution */ /* warn about confusing overload resolution */
if (winner && cand1->second_conv if (winner && cand1->second_conv
&& ! DECL_CONSTRUCTOR_P (cand1->fn) && ! DECL_CONSTRUCTOR_P (cand1->fn)
...@@ -6030,6 +6033,7 @@ joust (cand1, cand2) ...@@ -6030,6 +6033,7 @@ joust (cand1, cand2)
cp_warning (" because conversion sequence for `this' argument is better"); cp_warning (" because conversion sequence for `this' argument is better");
} }
} }
#endif
if (winner) if (winner)
return winner; return winner;
......
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