mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 01:01:35 +01:00
Add PUFFS_IGNORE_POTENTIALLY_UNUSED_VARIABLE.
This commit is contained in:
1 parent
18e32d61e5
commit
fda696bf95
6 files changed
+16
-20
No files matched your search
@@ -149,8 +149,7 @@ func (g *gen) writeSaveDerivedVar(b *buffer, name t.ID, typ *a.TypeExpr) error {
|
||||
b.printf("}")
|
||||
|
||||
// Not all writer1 methods use the wend variable.
|
||||
b.printf("\n/* Avoid the \"unused variable\" warning. */\n")
|
||||
b.printf("(void)(%swend_%s);", bPrefix, nameStr)
|
||||
b.printf("PUFFS_IGNORE_POTENTIALLY_UNUSED_VARIABLE(%swend_%s);", bPrefix, nameStr)
|
||||
|
||||
b.printf("}\n")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user