Skip to content
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

Supress unused paramater warning conflicting with if constexpr #105326

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

basicer
Copy link
Contributor

@basicer basicer commented Apr 12, 2025

The version of g++ that github actions currently uses seems to see a parameter as unused if the only use is in if constexpr branch that are unused for a particular invocation.

./core/os/memory.h:200:45: error: parameter 'p_start' set but not used [-Werror=unused-but-set-parameter]
  200 | _FORCE_INLINE_ void memnew_arr_placement(T *p_start, size_t p_num) {
      |                                          ~~~^~~~~~~

@basicer basicer requested a review from a team as a code owner April 12, 2025 20:26
@Ivorforce Ivorforce added this to the 4.5 milestone Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants