-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mikael Stellio
committed
Aug 30, 2024
1 parent
9da1206
commit 71dd604
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- a/C-FrontEnd/src/c-xcodeml.c | ||
+++ b/C-FrontEnd/src/c-xcodeml.c | ||
@@ -251,7 +251,8 @@ outxTag(FILE *fp, int indent, CExpr *expr, const char *tag, int xattrFlag, | ||
voutxTag(fp, indent, expr, tag, xattrFlag, attrFmt, args); | ||
va_end(args); | ||
} else { | ||
- voutxTag(fp, indent, expr, tag, xattrFlag, attrFmt, NULL); | ||
+ va_list empty_va_list = va_list(); | ||
+ voutxTag(fp, indent, expr, tag, xattrFlag, attrFmt, empty_va_list); | ||
} | ||
} | ||
|
||
@@ -282,9 +283,10 @@ outxTagForStmt(FILE *fp, int indent, CExpr *expr, const char *tag, int addXattrF | ||
attrFmt, args); | ||
va_end(args); | ||
} else { | ||
+ va_list empty_va_list = va_list(); | ||
voutxTag(fp, indent, expr, tag, | ||
XATTR_LINENO|XATTR_COMMON|addXattrFlag, | ||
- attrFmt, NULL); | ||
+ attrFmt, empty_va_list); | ||
} | ||
} | ||
|
||
@@ -301,9 +303,10 @@ outxTagForExpr(FILE *fp, int indent, CExpr *expr, const char *tag, int addXattrF | ||
attrFmt, args); | ||
va_end(args); | ||
} else { | ||
+ va_list empty_va_list = va_list(); | ||
voutxTag(fp, indent, expr, tag, | ||
XATTR_TYPE|XATTR_IS_GCCEXTENSION|XATTR_COMMON|addXattrFlag, | ||
- attrFmt, NULL); | ||
+ attrFmt, empty_va_list); | ||
} | ||
} | ||
|