NO... ldb: Fix a compiler warning issue
authorMatthieu Patou <mat@matws.net>
Wed, 26 Dec 2012 18:21:23 +0000 (10:21 -0800)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Jan 2013 21:03:14 +0000 (22:03 +0100)
STATIC_ldb_MODULES_PROTO is defined on the compilation command line by
-DSTATIC_ldb_MODULES_PROTO which the compiler seems to turn into
define STATIC_ldb_MODULES_PROTO 1 thus yielding a warning.

lib/ldb/common/ldb_modules.c

index 440365688bbb45f243e6b508e52402a0574924b8..ec1340c5dd78b673db91fa980272653009b3956b 100644 (file)
@@ -1040,7 +1040,6 @@ static int ldb_modules_load_static(const char *version)
 {
        static bool initialised;
 #define _MODULE_PROTO(init) extern int init(const char *);
-       STATIC_ldb_MODULES_PROTO;
        const ldb_module_init_fn static_init_functions[] = { STATIC_ldb_MODULES };
        unsigned i;