From: Jarkko Hietaniemi Date: Tue, 25 Jul 2000 02:39:54 +0000 (+0000) Subject: Make the "uninit variable" warning to say "concat or string" X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=297b36dcf845fc5195afb0a1d7e83d539bb1d4ed;p=p5sagit%2Fp5-mst-13.2.git Make the "uninit variable" warning to say "concat or string" or "join or string" when in concat or join . Subject: Re: [ID 20000403.009] uninitialised concatenation??? From: "M.J.T. Guy" Date: Tue, 04 Apr 2000 18:22:58 +0100 Message-Id: Subject: [ID 20000330.052] Use of uninitialized value in concatenation (.) From: William R Ward Date: Thu, 30 Mar 2000 19:50:03 -0800 Message-Id: <200003310350.TAA13319@komodo.bayview.com> p4raw-id: //depot/perl@6434 --- diff --git a/opcode.h b/opcode.h index f0fcba9..513343a 100644 --- a/opcode.h +++ b/opcode.h @@ -439,7 +439,7 @@ EXT char *PL_op_desc[] = { "integer addition (+)", "subtraction (-)", "integer subtraction (-)", - "concatenation (.)", + "concatenation (.) or string", "string", "left bitshift (<<)", "right bitshift (>>)", @@ -513,7 +513,7 @@ EXT char *PL_op_desc[] = { "unpack", "pack", "split", - "join", + "join or string", "list", "list slice", "anonymous list ([])", diff --git a/opcode.pl b/opcode.pl index eb64e8d..1c1d9bf 100755 --- a/opcode.pl +++ b/opcode.pl @@ -434,7 +434,7 @@ add addition (+) ck_null IfsT2 S S i_add integer addition (+) ck_null ifsT2 S S subtract subtraction (-) ck_null IfsT2 S S i_subtract integer subtraction (-) ck_null ifsT2 S S -concat concatenation (.) ck_concat fsT2 S S +concat concatenation (.) or string ck_concat fsT2 S S stringify string ck_fun fsT@ S left_shift left bitshift (<<) ck_bitop fsT2 S S @@ -533,7 +533,7 @@ hslice hash slice ck_null m@ H L unpack unpack ck_fun @ S S pack pack ck_fun mst@ S L split split ck_split t@ S S S -join join ck_join mst@ S L +join join or string ck_join mst@ S L # List operators. diff --git a/t/pragma/warn/op b/t/pragma/warn/op index 7368275..de326f8 100644 --- a/t/pragma/warn/op +++ b/t/pragma/warn/op @@ -278,7 +278,7 @@ Useless use of hash element in void context at - line 29. Useless use of hash slice in void context at - line 30. Useless use of unpack in void context at - line 31. Useless use of pack in void context at - line 32. -Useless use of join in void context at - line 33. +Useless use of join or string in void context at - line 33. Useless use of list slice in void context at - line 34. Useless use of sort in void context at - line 37. Useless use of reverse in void context at - line 38. diff --git a/t/pragma/warn/sv b/t/pragma/warn/sv index 758137f..2409589 100644 --- a/t/pragma/warn/sv +++ b/t/pragma/warn/sv @@ -178,7 +178,7 @@ no warnings 'uninitialized' ; $C = "" ; $C .= $A ; EXPECT -Use of uninitialized value in concatenation (.) at - line 10. +Use of uninitialized value in concatenation (.) or string at - line 10. ######## # sv.c use warnings 'numeric' ;