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
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
PyMODINIT_FUNC
|
PyMODINIT_FUNC PyInit_audit2why(void); /* silence -Wmissing-prototypes */
|
||||||
PyInit_audit2why(void)
|
PyMODINIT_FUNC PyInit_audit2why(void)
|
||||||
#else
|
#else
|
||||||
PyMODINIT_FUNC
|
PyMODINIT_FUNC initaudit2why(void); /* silence -Wmissing-prototypes */
|
||||||
initaudit2why(void)
|
PyMODINIT_FUNC initaudit2why(void)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
PyObject *m;
|
PyObject *m;
|
||||||
|
Loading…
Reference in New Issue
Block a user