mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-03 12:55:45 +00:00
build: Fix prohibit_int_ijk (and iijjkk) on RHEL 5
On RHEL 5, make syntax-check was failing because even strings like 'int isTempChain' matched the 'int i' rule. To be honest, I haven't found the root cause, but the change added makes it work as expected and keeps the proper behavior on newer systems as well.
This commit is contained in:
parent
e350826c65
commit
ecddd7a3c0
4
cfg.mk
4
cfg.mk
@ -555,12 +555,12 @@ sc_avoid_attribute_unused_in_header:
|
|||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
sc_prohibit_int_ijk:
|
sc_prohibit_int_ijk:
|
||||||
@prohibit='\<(int|unsigned) ([^(]* )*(i|j|k)(\s|,|;)' \
|
@prohibit='\<(int|unsigned) ([^(]* )*(i|j|k)\>(\s|,|;)' \
|
||||||
halt='use size_t, not int/unsigned int for loop vars i, j, k' \
|
halt='use size_t, not int/unsigned int for loop vars i, j, k' \
|
||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
sc_prohibit_loop_iijjkk:
|
sc_prohibit_loop_iijjkk:
|
||||||
@prohibit='\<(int|unsigned) ([^=]+ )*(ii|jj|kk)(\s|,|;)' \
|
@prohibit='\<(int|unsigned) ([^=]+ )*(ii|jj|kk)\>(\s|,|;)' \
|
||||||
halt='use i, j, k for loop iterators, not ii, jj, kk' \
|
halt='use i, j, k for loop iterators, not ii, jj, kk' \
|
||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user