[gnutls-devel] GnuTLS | cppcheck skips most files in lib/ (#705)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Wed Feb 13 16:34:30 CET 2019
New Issue was created.
Issue 705: https://gitlab.com/gnutls/gnutls/issues/705
Author: Tim Rühsen
Adding `--enable=information` and gives the following warning for most of our files in `lib/`:
noValidConfiguration:lib/algorithms/cert_types.c:0,information,This file is not analyzed. Cppcheck failed to extract a valid configuration. Use -v for more details.
Adding -v prints a lot stuff, mainly saying that cppcheck has a problem with `gl/c-ctype.h`.
The tested configurations have these preprocessor errors:\012HAVE_CONFIG_H=1 : [gl/c-ctype.h:78] #error "Only ASCII and EBCDIC are supported"
Setting `# define C_CTYPE_ASCII 1` hard-coded in `gl/c-ctype.h` (removing the #if check) seems to work out. Though cppcheck is extremely slow...
BTW, in `gitlab-ci.yml` the cppcheck option `-Ilib/include` should be `-Ilib/includes`.
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/705
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnutls-devel