Skip to content

Conversation

@demerphq
Copy link
Contributor

This adds some text to the warning explaining it only affects private functions and that making the function public will silence the warning.

…vate functions

The original version of this warning did not mention that the warning
applies to private functions only, this patch fixes that.
@demerphq demerphq force-pushed the yves/dep_unused_optional_params_warnings branch from e9e31ab to 512401f Compare March 12, 2025 23:07
@demerphq
Copy link
Contributor Author

@josevalim I am pretty sure the test failure in this PR is not from my change. It seems to be from a deprecated warning from testing a deprecated feature. What should I do about this?

warning: setting :on_undefined_variable to :warn is deprecated. The warning behaviour will be removed in future releases
  test/elixir/kernel/expansion_test.exs:314: Kernel.ExpansionTest."test vars expands vars to local call when :on_undefined_variable is :warn"/1

@josevalim
Copy link
Member

@demerphq it is not related to your change however that's not the failure. GitHub Actions does not show all of the output on Windows and you have to click to view all to see the actual thing. It is in our todo list to track it down.

@josevalim josevalim merged commit d25bea5 into elixir-lang:main Mar 13, 2025
8 of 10 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@demerphq demerphq deleted the yves/dep_unused_optional_params_warnings branch March 13, 2025 11:54
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