-
Notifications
You must be signed in to change notification settings - Fork 259
Gcc 10 error #1531
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
base: master
Are you sure you want to change the base?
Gcc 10 error #1531
Conversation
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 '_'.
There was a problem hiding this comment.
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, ...
This PR fixes the error for gcc10:
error: parameter name omitted