Skip to content

Fix -Wstrict-prototypes warnings#782

Merged
vathpela merged 1 commit intorhboot:mainfrom
fabio-porcedda:main
Mar 20, 2026
Merged

Fix -Wstrict-prototypes warnings#782
vathpela merged 1 commit intorhboot:mainfrom
fabio-porcedda:main

Conversation

@fabio-porcedda
Copy link
Copy Markdown
Contributor

Use void instead of empty parentheses.

sbat.c:459:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
459 | clear_sbat_policy()
| ^~~~~~~~~~~~~~~~~
MokManager.c:740:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
740 | static INTN reset_system()
| ^~~~~~~~~~~~
MokManager.c:2155:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
2155 | static int draw_countdown()
| ^~~~~~~~~~~~~~

Use void instead of empty parentheses.

sbat.c:459:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  459 | clear_sbat_policy()
      | ^~~~~~~~~~~~~~~~~
MokManager.c:740:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  740 | static INTN reset_system()
      |             ^~~~~~~~~~~~
MokManager.c:2155:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 2155 | static int draw_countdown()
      |            ^~~~~~~~~~~~~~

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Copy link
Copy Markdown
Member

@vathpela vathpela left a comment

Choose a reason for hiding this comment

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

lgtm

@vathpela vathpela merged commit 5ee7df9 into rhboot:main Mar 20, 2026
1 check passed
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.

2 participants