From e1b71f1c133fd43935135a44cdbbb7e912ff4279 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Fri, 17 May 2013 04:50:20 -0700 Subject: buildtools: Fix compilation warnings STATIC_%s_MODULES_PROTO is defined on the compilation command line by -DSTATIC__MODULES_PROTO which the compiler seems to turn into define STATIC__MODULES_PROTO 1 thus yielding a warning due to unused var Signed-off-by: Matthieu Patou Reviewed-by: Andrew Bartlett --- buildtools/wafsamba/samba_deps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buildtools/wafsamba') diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index 3220f3537d0..74a70cff7e5 100644 --- a/buildtools/wafsamba/samba_deps.py +++ b/buildtools/wafsamba/samba_deps.py @@ -224,7 +224,7 @@ def add_init_functions(self): sname = sname.replace('/','_') cflags.append('-DSTATIC_%s_MODULES=%s' % (sname, sentinel)) if sentinel == 'NULL': - cflags.append('-DSTATIC_%s_MODULES_PROTO' % sname) + cflags.append('-DSTATIC_%s_MODULES_PROTO=' % sname) self.ccflags = cflags return -- cgit v1.2.1