projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix clang build
[m6w6/ext-psi]
/
src
/
error.c
diff --git
a/src/error.c
b/src/error.c
index 486867bbfb1364338522a9dae218598b077c5c59..48a41ac2481dc99042da0d8540eb4503b7f1b1ee 100644
(file)
--- a/
src/error.c
+++ b/
src/error.c
@@
-71,6
+71,11
@@
void psi_error_wrapper(struct psi_data *context, struct psi_token *t, int type,
va_start(argv, msg);
psi_verror(type, fn, ln, msg, argv);
va_start(argv, msg);
psi_verror(type, fn, ln, msg, argv);
+#ifdef __clang__
+ va_end(argv);
+ va_start(argv, msg);
+#endif
+ PSI_DEBUG_PRINTV(context, msg, argv);
va_end(argv);
if (context) {
va_end(argv);
if (context) {