Commit 6f9b4dc
avoid unitialized warnings when resolving extra compiler/link flags in xs_ok
xs_ok merges the compile and link flags passed to it with those
provided by ExtUtils::CppGuess. It assumes that if there are extra
flags returned by ExtUtils::CppGuess, then there are also extra flags
passed to xs_ok.
On some systems, this assumption does not hold, and results in
undefined values being passed to Text::ParseWords::shellwords when parsing
extra flags passed to xs_ok, causing warnings such as
use of uninitialized value $line in substitution (s///) at .../Text/ParseWords.pm line 21.
to be emitted.1 parent 3209ede commit 6f9b4dc
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
0 commit comments