mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 01:54:28 +02:00
fix building with clang
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> Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
34c30d12fc
commit
fb87de795b
2 changed files with 4 additions and 4 deletions
2
cgit.h
2
cgit.h
|
@ -69,7 +69,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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue