]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: Remove unused header check for 'strings.h'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 31 Mar 2021 08:36:11 +0000 (10:36 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 6 Apr 2021 14:53:49 +0000 (16:53 +0200)
Libvirt doesn't use it and we also require use of wrappers for such
string operations. Remove the pointless check.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
build-aux/syntax-check.mk

index 2a5d3c99800dddb1ef06b02ef1c9ae049ee00467..2ada23921e09a38344501a95c85a5728809f58d7 100644 (file)
@@ -1445,14 +1445,6 @@ sc_prohibit_stdio--_without_use:
        @h='stdio--.h' re='\<((f(re)?|p)open|tmpfile) *\('              \
          $(_sc_header_without_use)
 
-# Prohibit the inclusion of strings.h without a sensible use.
-# Using the likes of bcmp, bcopy, bzero, index or rindex is not sensible.
-sc_prohibit_strings_without_use:
-       @h='strings.h'                                                  \
-       re='\<(strn?casecmp|ffs(ll)?)\>'                                \
-         $(_sc_header_without_use)
-
-
 _stddef_syms_re = NULL|offsetof|ptrdiff_t|size_t|wchar_t
 # Prohibit the inclusion of stddef.h without an actual use.
 sc_prohibit_stddef_without_use: