summaryrefslogtreecommitdiff
path: root/NetWare/nwperlsys.h
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2016-10-31 11:35:40 +1100
committerTony Cook <tony@develop-help.com>2016-10-31 11:35:52 +1100
commit11327fa125f019cb46cfadd1fcec077cbcb8e41f (patch)
tree35cf4124851711b53c40d015d829075baf14ffd5 /NetWare/nwperlsys.h
parent0529658c13ee0689299688dfce6f5e7e220734d9 (diff)
downloadperl-11327fa125f019cb46cfadd1fcec077cbcb8e41f.tar.gz
(perl #129961) code cleanup for clang -Weverything support
This patch simplifies two bits of code that I came across while working on supporting the clang -Weverything flag. The first, in Perl_validate_proto, removes unnecessary variable initialization if proto of NULL is passed. The second, in S_scan_const, rearranges some code and #ifdefs so that the convert_unicode and real_range_max variables are only declared if EBCDIC is set. This lets us no longer have to unnecessarily set useless variables to make the compiler happy, and it saves us from some unnecessary checks on "if (convert_unicode)". One of the comments says "(Compilers should optimize this out for non-EBCDIC)", but now the compiler won't even see these unnecessary variables or tests.
Diffstat (limited to 'NetWare/nwperlsys.h')
0 files changed, 0 insertions, 0 deletions