nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

More -c compile-time warnings #342

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
need to add compile-time (BEGIN) warnings (and tests) for:

- reading ENV
- writing ENV
- using POSIX 
...

Original issue reported on code.google.com by reini.urban on 2 Jun 2014 at 4:50

GoogleCodeExporter commented 9 years ago
%ENV is always re-initialized at run-time.

reading ENV in a BEGIN block should do no harm, and might be actually useful, 
but we nevertheless should warn about it, as the run-time value will be 
different.

writing ENV in a BEGIN block is just ignored and we need to warn about it.

Same for using POSIX and other syscalls side-effects. readers and writers are 
just ignored.

Original comment by reini.urban on 2 Jun 2014 at 5:01

GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 2 Jun 2014 at 8:38

GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 11 Jun 2014 at 11:21

GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 11 Jun 2014 at 11:24