X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Fcommon%2Fmetadata%2Fparser.y;h=71f2d5fefc62eb453fa5d655ce7cb1424b096baa;hp=16868179282c18b66da6a110becc880336d3cc68;hb=b86399bbee3e37b36ef60df8743da17ecea8c5dc;hpb=edd728ec4fe03e0d9ee36e84fa94cf8ac488e8ea diff --git a/src/plugins/ctf/common/metadata/parser.y b/src/plugins/ctf/common/metadata/parser.y index 16868179..71f2d5fe 100644 --- a/src/plugins/ctf/common/metadata/parser.y +++ b/src/plugins/ctf/common/metadata/parser.y @@ -1036,6 +1036,17 @@ void ctf_scanner_free(struct ctf_scanner *scanner) free(scanner); } +/* + * The bison-provided version of strlen (yystrlen) generates a benign + * -Wnull-dereference warning. That version is used when building on cygwin, + * for example, but you can also enable it by hand (to test) by removing the + * preprocessor conditional around it. + * + * Define yystrlen such that it will always use strlen. As far as we know, + * strlen provided by all the platforms we use is reliable. + */ +#define yystrlen strlen + %} /*