Page MenuHomeFreeBSD

Use proper prototypes in struct boot_module_t
ClosedPublic

Authored by dim on Jan 11 2017, 7:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 20, 2:12 AM
Unknown Object (File)
Tue, Apr 2, 7:42 PM
Unknown Object (File)
Tue, Apr 2, 5:58 PM
Unknown Object (File)
Mar 3 2024, 7:31 AM
Unknown Object (File)
Mar 3 2024, 7:08 AM
Unknown Object (File)
Jan 6 2024, 7:05 AM
Unknown Object (File)
Jan 6 2024, 7:05 AM
Unknown Object (File)
Jan 6 2024, 7:04 AM
Subscribers

Details

Summary

With clang 4.0.0, we are getting the following warnings about struct
boot_module_t in efi's boot_module.h:

In file included from sys/boot/efi/boot1/ufs_module.c:41:
sys/boot/efi/boot1/boot_module.h:67:14: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
        void (*init)();
                    ^
                     void
sys/boot/efi/boot1/boot_module.h:92:16: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
        void (*status)();
                      ^
                       void
sys/boot/efi/boot1/boot_module.h:95:24: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
        dev_info_t *(*devices)();
                              ^
                               void
3 errors generated.

Fix this by adding 'void' to the parameter lists. No functional change.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dim retitled this revision from to Use proper prototypes in struct boot_module_t.
dim updated this object.
dim edited the test plan for this revision. (Show Details)
dim added reviewers: emaste, smh.
emaste edited edge metadata.
This revision is now accepted and ready to land.Jan 11 2017, 7:49 PM
imp added a reviewer: imp.
smh edited edge metadata.
This revision was automatically updated to reflect the committed changes.