7/8 Remove unnecessary "#include <assert.h>"s

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Enable the <assert.h>-checking test; fix violations.

* Makefile.cfg (local-checks-to-skip)
[sc_prohibit_assert_without_use]: Enable.
* qemud/mdns.c: Don't include <assert.h>; no uses of assert here.
* qemud/qemud.c: Likewise.
* qemud/remote.c: Likewise.

Signed-off-by: Jim Meyering <meyering@xxxxxxxxxx>
---
 Makefile.cfg   |    1 -
 qemud/mdns.c   |    1 -
 qemud/qemud.c  |    1 -
 qemud/remote.c |    1 -
 4 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/Makefile.cfg b/Makefile.cfg
index 697fde4..dfca3fc 100644
--- a/Makefile.cfg
+++ b/Makefile.cfg
@@ -42,7 +42,6 @@ local-checks-to-skip =			\
   sc_error_exit_success			\
   sc_file_system			\
   sc_obsolete_symbols			\
-  sc_prohibit_assert_without_use	\
   sc_prohibit_atoi_atof			\
   sc_prohibit_jm_in_m4			\
   sc_prohibit_quote_without_use		\
diff --git a/qemud/mdns.c b/qemud/mdns.c
index 1585b5b..cebf9a4 100644
--- a/qemud/mdns.c
+++ b/qemud/mdns.c
@@ -29,7 +29,6 @@
 #include <time.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <assert.h>

 #include <avahi-client/client.h>
 #include <avahi-client/publish.h>
diff --git a/qemud/qemud.c b/qemud/qemud.c
index 77a2352..e853538 100644
--- a/qemud/qemud.c
+++ b/qemud/qemud.c
@@ -44,7 +44,6 @@
 #include <string.h>
 #include <errno.h>
 #include <getopt.h>
-#include <assert.h>
 #include <fnmatch.h>
 #include <grp.h>
 #include <signal.h>
diff --git a/qemud/remote.c b/qemud/remote.c
index b5b0ef6..57f8f29 100644
--- a/qemud/remote.c
+++ b/qemud/remote.c
@@ -43,7 +43,6 @@
 #include <errno.h>
 #include <getopt.h>
 #include <ctype.h>
-#include <assert.h>
 #include <fnmatch.h>

 #ifdef HAVE_POLKIT
--
1.5.4.rc4.15.g215c5

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]