]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r311933:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 25 Jan 2017 20:12:07 +0000 (20:12 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 25 Jan 2017 20:12:07 +0000 (20:12 +0000)
commit3fd95989e96868927599f0a9c89dbdb1a8f81fab
tree365e12ffb2e693059efcf2b95c9821c36bfcf00c
parent987c0c95ab73e9a18503e81f37b14d7d132fb1f3
MFC r311933:

Use proper prototypes in struct boot_module_t

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.

Reviewed by: emaste, imp, smh
Differential Revision: https://reviews.freebsd.org/D9144

git-svn-id: svn://svn.freebsd.org/base/stable/10@312773 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/boot/efi/boot1/boot_module.h