summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/config.mk2
-rw-r--r--source4/auth/credentials/config.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/source4/auth/config.mk b/source4/auth/config.mk
index 0162653076..78a267ced1 100644
--- a/source4/auth/config.mk
+++ b/source4/auth/config.mk
@@ -44,3 +44,5 @@ SWIG_FILE = auth.i
$(eval $(call python_py_module_template,auth.py,$(authsrcdir)/auth.py))
swig_auth_OBJ_FILES = $(authsrcdir)/auth_wrap.o
+
+$(swig_auth_OBJ_FILES): CFLAGS+="$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)"
diff --git a/source4/auth/credentials/config.mk b/source4/auth/credentials/config.mk
index fc01f7eddc..18cf460179 100644
--- a/source4/auth/credentials/config.mk
+++ b/source4/auth/credentials/config.mk
@@ -20,3 +20,5 @@ SWIG_FILE = credentials.i
$(eval $(call python_py_module_template,credentials.py,$(authsrcdir)/credentials/credentials.py))
swig_credentials_OBJ_FILES = $(authsrcdir)/credentials/credentials_wrap.o
+
+$(swig_credentials_OBJ_FILES): CFLAGS+="$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)"