-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/I+YIACgkQrlYvE4MpobMBpQCeIgXGhnsVEZEXTWzrGX/GF480 fvcAoOVIkfIIhvkt/HachsBq5XhYKj05 =7aHC -----END PGP SIGNATURE-----
>From dec42e72421dde8adfdab2679366e9a89d65728e Mon Sep 17 00:00:00 2001 From: Eric Paris <eparis@xxxxxxxxxx> Date: Thu, 19 Apr 2012 15:09:56 -0400 Subject: [PATCH 46/90] libselinux: audit2why: silence -Wmissing-prototypes warning The init functions are non-static but did not have a prototype declaration. They are called magically from python, so just declare the prototype to silence the warning. Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> --- libselinux/src/audit2why.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libselinux/src/audit2why.c b/libselinux/src/audit2why.c index f621de7..f7750fc 100644 --- a/libselinux/src/audit2why.c +++ b/libselinux/src/audit2why.c @@ -446,11 +446,11 @@ static struct PyModuleDef moduledef = { NULL }; -PyMODINIT_FUNC -PyInit_audit2why(void) +PyMODINIT_FUNC PyInit_audit2why(void); /* silence -Wmissing-prototypes */ +PyMODINIT_FUNC PyInit_audit2why(void) #else -PyMODINIT_FUNC -initaudit2why(void) +PyMODINIT_FUNC initaudit2why(void); /* silence -Wmissing-prototypes */ +PyMODINIT_FUNC initaudit2why(void) #endif { PyObject *m; -- 1.7.10.2