]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Suppress ‘make syntax-check’ complaint about use of strcmp.
authorZack Weinberg <zackw@panix.com>
Fri, 28 Aug 2020 17:59:05 +0000 (13:59 -0400)
committerZack Weinberg <zackw@panix.com>
Fri, 28 Aug 2020 17:59:05 +0000 (13:59 -0400)
commita2a6641c52994641bd10fb5efe2ecc51c07d798e
tree8de31dbcbd5a44ce2bde6b211e67c0f3d57cdd0a
parent845302b9b67f8ac10b050145c31e4463e60decb8
Suppress ‘make syntax-check’ complaint about use of strcmp.

Recently ‘make syntax-check’ added a lint rule discouraging use of
bare ‘strcmp’ (in favor of gnulib’s streq/strneq wrappers), which
triggers on some code in c.m4’s test for C++98 compliance.

This lint rule makes sense for typical C programs coded to GNU’s
standards, but not for autoconf’s test programs.  There is no way to
disable it from outside the code, so this patch adds parentheses
around the name ‘strcmp’, which is sufficient to disable this
grep-based lint but doesn’t change the meaning of the code as
understood by an actual C++ compiler.

* c.m4 (_AC_CXX_CXX98_TEST_HEADER): Suppress ‘make syntax-check’
  error on use of strcmp.
lib/autoconf/c.m4