Skip to content

avoid unitialized warnings when resolving extra compiler/link flags i… #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2025
Merged

avoid unitialized warnings when resolving extra compiler/link flags i… #15

merged 1 commit into from
Jan 4, 2025

Conversation

djerius
Copy link
Contributor

@djerius djerius commented Jan 3, 2025

…n 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.

…n 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.
@plicease plicease merged commit 6f9b4dc into PerlAlien:main Jan 4, 2025
19 checks passed
@plicease
Copy link
Member

plicease commented Jan 4, 2025

Great, thanks! Headed to CPAN as 1.04

@djerius djerius deleted the fix-uninit-extra-flags branch January 6, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants