Skip to content

Conversation

@ChenQi1989
Copy link

This PR fixes the error for gcc10:
error: parameter name omitted

This reverts commit 9e711e2.

We cannot just uname these unused parameters because gcc 10
need them. There will be error like below with gcc 10:

  lib/copydir.c:103:11: error: parameter name omitted

Fixes: shadow-maint#1530

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
This reverts commit 0663ba2.

Fixes: shadow-maint#1530

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Fixes: shadow-maint#1530

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Fixes: shadow-maint#1530

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>

static void
login_exit(int)
static void login_exit (MAYBE_UNUSED int sig)
Copy link
Collaborator

@alejandro-colomar alejandro-colomar Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we really need to fix the regression, I'd like to not revert the commits. Instead, please call the parameters _ in a new commit. When there is more than one, please call them _, __, ___, etc.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. I'll squash these into one patch and use parameters like '_'.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, after some thought, _ will collide with the _() function from GNU gettext. Also, __ is a reserved identifier.

So, we'll need _1, _2, ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Regression] Build error with gcc 10: error: parameter name omitted

2 participants