summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-24 22:41:47 (GMT)
committer Daniel Silverstone <dsilvers@netsurf-browser.org>2012-03-24 22:41:47 (GMT)
commit290588c4d1161dd43f4715622f1a53f8ccd31d15 (patch)
tree83d4dd2c875295eb39b1a73f7390da5c8309304f
parent716b4f2fdb721a4bcbe2992682906013f74fc2c7 (diff)
downloadlibcss-290588c4d1161dd43f4715622f1a53f8ccd31d15.tar.gz
libcss-290588c4d1161dd43f4715622f1a53f8ccd31d15.tar.bz2
Dodgy bodge to shut clang up
svn path=/trunk/libcss/; revision=13642
-rw-r--r--src/parse/properties/css_property_parser_gen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parse/properties/css_property_parser_gen.c b/src/parse/properties/css_property_parser_gen.c
index dec4745..ceebca0 100644
--- a/src/parse/properties/css_property_parser_gen.c
+++ b/src/parse/properties/css_property_parser_gen.c
@@ -126,7 +126,9 @@ void output_token_type_check(FILE *outputf, bool do_token_check, struct keyval_l
" const css_token *token;\n"
" bool match;\n\n"
" token = parserutils_vector_iterate(vector, ctx);\n"
- " if ((token == NULL)");
+ " if (%stoken == NULL%s",
+ do_token_check ? "(" : "",
+ do_token_check ? ")" : "");
if (do_token_check) {
bool prev = false; /* there was a previous check - add && */