From: Martin Kletzander Date: Wed, 16 Jul 2014 05:56:50 +0000 (+0200) Subject: cfg.mk: allow integers to be assigned a value computed with i|j|k X-Git-Tag: v1.2.8-rc1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1734f9e6c037a9fadbe4e2eb2b4fd4904c623003;p=thirdparty%2Flibvirt.git cfg.mk: allow integers to be assigned a value computed with i|j|k Even line like this: int asdf = i - somevar; was matched by the regex, so this patch adds '=' to the list of characters that break the regexp. Signed-off-by: Martin Kletzander --- diff --git a/cfg.mk b/cfg.mk index bf5cb7df46..307009e54b 100644 --- a/cfg.mk +++ b/cfg.mk @@ -568,7 +568,7 @@ sc_avoid_attribute_unused_in_header: $(_sc_search_regexp) 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' \ $(_sc_search_regexp)