summaryrefslogtreecommitdiff
path: root/lib/ExtUtils/Constant
diff options
context:
space:
mode:
authorVadim Konovalov <vkonovalov@lucent.com>2007-09-02 06:52:13 +0400
committerSteve Hay <SteveHay@planit.com>2007-09-03 11:07:53 +0000
commit2e538cd12522ca22c155a902bd7637a80df531c9 (patch)
tree6b34bc3822b94e6ed01c53d91e280f30cd9f7b36 /lib/ExtUtils/Constant
parenta1f2e7199166cd131cf3ae57c774868eaa6d61aa (diff)
downloadperl-2e538cd12522ca22c155a902bd7637a80df531c9.tar.gz
Re: [patch-at-31775] Re: [PATCH-revised] [perl #44999]
Message-ID: <46D9ED1D.8060104@vkonovalov.ru> Better way to silence unwanted warnings. (The previous method didn't work with an "all static" build made with #31784. This method does work.) p4raw-id: //depot/perl@31785
Diffstat (limited to 'lib/ExtUtils/Constant')
-rw-r--r--lib/ExtUtils/Constant/ProxySubs.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/ExtUtils/Constant/ProxySubs.pm b/lib/ExtUtils/Constant/ProxySubs.pm
index 9bcf11011b..5ae56db731 100644
--- a/lib/ExtUtils/Constant/ProxySubs.pm
+++ b/lib/ExtUtils/Constant/ProxySubs.pm
@@ -312,13 +312,10 @@ EOBOOT
print $xs_fh <<"EOBOOT";
#ifndef SYMBIAN
+ ${c_subname}_missing = get_hv("${symbol_table}${c_subname}_M!55!NG", TRUE);
/* When we create the 'missing' hash, it generates a 'used only once'
- * warning. Therefore, turn off warnings while we do this.
- */
- const bool warn_tmp = PL_dowarn;
- PL_dowarn = 0;
+ * warning. Avoid this: */
${c_subname}_missing = get_hv("${symbol_table}${c_subname}_M!55!NG", TRUE);
- PL_dowarn = warn_tmp;
#endif
EOBOOT