From 52acb63751aaf23232e447f1d37c36571979d74c Mon Sep 17 00:00:00 2001 From: Lee Yunjin Date: Mon, 5 Oct 2026 19:56:54 +0900 Subject: [PATCH] fix(css_composer): drop nested comment opener from Doxygen comment The cwist_css_minify() comment added in 3b5c5ed9 spelled out the preserved license-comment syntax, which put a comment opener inside a comment. GCC's -Wcomment flags it, and CI builds with -Werror, so dev (and every PR built against it) fails at css_composer.o. Describe the syntax in words instead. --- src/core/html/css_composer.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/html/css_composer.c b/src/core/html/css_composer.c index 421c80611..7d9151b51 100644 --- a/src/core/html/css_composer.c +++ b/src/core/html/css_composer.c @@ -531,9 +531,10 @@ static bool css_starts_url(const char *p) { * @param css CSS source text; must not be NULL. * @return Newly created sstring with the minified CSS, or NULL on invalid * input or allocation failure. Caller owns the returned string. - * @details Preserves /*!...*!/ comments verbatim, quoted strings, escapes, and - * unquoted url() arguments. Whitespace around structural characters - * and comments is dropped unless removing it would glue two tokens. + * @details Preserves license comments (those opening with a '!'), quoted + * strings, escapes, and unquoted url() arguments verbatim. + * Whitespace around structural characters and comments is dropped + * unless removing it would glue two tokens. */ cwist_sstring *cwist_css_minify(const char *css) { if (!css) return NULL;