s3:printing: Avoid compiler warning about unused label
authorKai Blin <kai@samba.org>
Fri, 14 Mar 2014 08:07:16 +0000 (09:07 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 25 Nov 2014 06:25:44 +0000 (07:25 +0100)
Signed-off-by: Kai Blin <kai@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/printing/pcap.c

index c5524ad53dbfb3f46364a8d9a2fe154cc45a825e..726111816d6678e734d16a642bca4fe4021f8f6d 100644 (file)
@@ -181,7 +181,11 @@ void pcap_cache_reload(struct tevent_context *ev,
 
        pcap_reloaded = std_pcap_cache_reload(pcap_name, &pcache);
 
+/* Fix silly compiler warning about done not being used if none of the above
+ * ifdefs are used */
+#if defined(HAVE_CUPS) || defined(HAVE_IPRINT) || defined(SYSV) || defined(HPUX) || defined(AIX)
 done:
+#endif
        DEBUG(3, ("reload status: %s\n", (pcap_reloaded) ? "ok" : "error"));
 
        if ((pcap_reloaded) && (post_cache_fill_fn_handled == false)) {