mirror of
https://git.code.sf.net/p/zint/code
synced 2026-05-14 18:13:53 +00:00
general: suppress clang-tidy-21/22 warnings;
some code fiddling on affected files manual: use new lua filter "lua-crossrefs.lua" hacked from https://github.com/rnwst/pandoc-lua-crossrefs as replacement for tablenos which broke with pandoc 2.8.2 (get nicer output anyway); fix "excode39.svg" data $ -> # to avoid shell processing; document `ZBarcode_HaveGS1SyntaxEngine()`
This commit is contained in:
@@ -59,6 +59,8 @@ static void svg_pick_colour(const int colour, char colour_code[7]) {
|
||||
/* Convert text to use HTML entity codes */
|
||||
static void svg_make_html_friendly(const unsigned char *string, char *html_version) {
|
||||
|
||||
/* `NOLINT` required due to disconnect between `symbol->text` and vector `string`s which are always <= */
|
||||
/* NOLINTBEGIN(clang-analyzer-security.ArrayBound) clang-tidy-21 false positive */
|
||||
for (; *string; string++) {
|
||||
switch (*string) {
|
||||
case '>':
|
||||
@@ -93,6 +95,7 @@ static void svg_make_html_friendly(const unsigned char *string, char *html_versi
|
||||
}
|
||||
|
||||
*html_version = '\0';
|
||||
/* NOLINTEND(clang-analyzer-security.ArrayBound) */
|
||||
}
|
||||
|
||||
/* Helper to output floating point attribute */
|
||||
|
||||
Reference in New Issue
Block a user