From e18c956b54c56b7dd52ac85ac7f26016f6e81a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 29 Jun 2008 23:00:42 +0200 Subject: [PATCH] Reduced amount of info in deprecation warning to report a less confusing message. Rev: src/program.c:1.730 --- src/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/program.c b/src/program.c index 7c83f2260e..f2a4be6e1a 100644 --- a/src/program.c +++ b/src/program.c @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: program.c,v 1.729 2008/06/29 12:50:04 nilsson Exp $ +|| $Id: program.c,v 1.730 2008/06/29 21:00:42 grubba Exp $ */ #include "global.h" @@ -8769,10 +8769,10 @@ static void f_compilation_apply_type_attribute(INT32 args) (!b || ((b->type == T_INT) && (b->subtype == NUMBER_UNDEFINED) && (!b->u.integer)))) { - push_svalue(a); + /* push_svalue(a); */ yytype_report(REPORT_WARNING, NULL, 0, NULL, NULL, 0, NULL, - 1, "Calling a deprecated %O value."); + 0, "Calling a deprecated value."); } } pop_n_elems(args); -- GitLab