diff options
author | Denis Pronin <dannftk@yandex.ru> | 2024-06-09 08:41:36 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-07-16 13:03:33 +0200 |
commit | 120536d27cbcbe6a0c99661e70bfe23dc5b13814 (patch) | |
tree | ce279d095eb67506a0cd3294c823f58c24b494ad /cgit.h | |
parent | 00ecfaadea2c40cc62b7a43e246384329e6ddb98 (diff) | |
download | cgit-120536d27cbcbe6a0c99661e70bfe23dc5b13814.tar.gz cgit-120536d27cbcbe6a0c99661e70bfe23dc5b13814.tar.xz |
fix building with clangorigin/ch/clang-filter
fix error that is given because of macro overlapping cgit_filter member:
../filter.c:388:10: error: no member named '__fprintf_chk' in
'struct cgit_filter'
388 | filter->fprintf(filter, f, prefix);
| ~~~~~~ ^
/usr/include/bits/stdio2.h:92:3: note: expanded from macro 'fprintf'
92 | __fprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
| ^
1 error generated.
Signed-off-by: Denis Pronin <dannftk@yandex.ru>
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -65,7 +65,7 @@ typedef enum { struct cgit_filter { int (*open)(struct cgit_filter *, va_list ap); int (*close)(struct cgit_filter *); - void (*fprintf)(struct cgit_filter *, FILE *, const char *prefix); + void (*fprintfp)(struct cgit_filter *, FILE *, const char *prefix); void (*cleanup)(struct cgit_filter *); int argument_count; }; |