mirror of
https://github.com/SELinuxProject/selinux
synced 2025-03-01 07:50:38 +00:00
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@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
378dfe4d6a
commit
9b3055ada5
@ -453,11 +453,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;
|
||||
|
Loading…
Reference in New Issue
Block a user