]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
make: Fix 'make syntax-check' failing.
authorPeter Krempa <pkrempa@redhat.com>
Wed, 14 Sep 2011 12:20:07 +0000 (14:20 +0200)
committerEric Blake <eblake@redhat.com>
Wed, 14 Sep 2011 14:35:25 +0000 (08:35 -0600)
Commit 2a0d75e5 added file python/libvirt-qemu-override.c that contains
code that does not pass "make syntax-check". This patch adds an
exception for this file and the check.

prohibit_always_true_header_tests
python/libvirt-qemu-override.c:17:#undef HAVE_PTHREAD_H
maint.mk: do not test the above HAVE_<header>_H symbol(s);
  with the corresponding gnulib module, they are always true
make: *** [sc_prohibit_always_true_header_tests] Error 1

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 1bd9891ada9889f64bae1d51ff9470e8931b3356..0a2a5b1d313c7d48fb63cbc1d8b1a57d8b03709f 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -689,7 +689,7 @@ exclude_file_name_regexp--sc_prohibit_VIR_ERR_NO_MEMORY = \
 exclude_file_name_regexp--sc_prohibit_access_xok = ^src/util/util\.c$$
 
 exclude_file_name_regexp--sc_prohibit_always_true_header_tests = \
-  ^python/(libvirt-override|typewrappers)\.c$$
+  ^python/(libvirt-(qemu-)?override|typewrappers)\.c$$
 
 exclude_file_name_regexp--sc_prohibit_asprintf = \
   ^(bootstrap.conf$$|src/util/util\.c$$|examples/domain-events/events-c/event-test\.c$$)