libselinux: audit2why: remove unused module_state structure

This structure has been empty since its introduction and makes clang
complain when $(filter-out -Werror, $(CFLAGS)) is removed in the
Makefile target for audit2why.lo:

    audit2why.c:443:1: error: empty struct has size 0 in C, size 1 in
    C++ [-Werror,-Wc++-compat]
      struct module_state {
      ^
      1 error generated.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2016-11-17 22:43:56 +01:00 committed by Stephen Smalley
parent a441d51011
commit 489dd595d7

View file

@ -440,14 +440,11 @@ static PyMethodDef audit2whyMethods[] = {
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
/* Module-initialization logic specific to Python 3 */ /* Module-initialization logic specific to Python 3 */
struct module_state {
/* empty for now */
};
static struct PyModuleDef moduledef = { static struct PyModuleDef moduledef = {
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"audit2why", "audit2why",
NULL, NULL,
sizeof(struct module_state), 0,
audit2whyMethods, audit2whyMethods,
NULL, NULL,
NULL, NULL,