This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
In S_mro_get_linear_isa_dfs(), add void casts to silence two warnings
[perl5.git]
/
perl.c
diff --git
a/perl.c
b/perl.c
index
e41ae96
..
98437a3
100644
(file)
--- a/
perl.c
+++ b/
perl.c
@@
-3431,8
+3431,10
@@
Internet, point your browser at http://www.perl.org/, the Perl Home Page.\n\n");
return s;
case '*':
case ' ':
- if (s[1] == '-') /* Additional switches on #! line. */
- return s+2;
+ while( *s == ' ' )
+ ++s;
+ if (s[0] == '-') /* Additional switches on #! line. */
+ return s+1;
break;
case '-':
case 0: