]> git.cworth.org Git - apitrace/commitdiff
Silence warnings due to unused variables.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 23 May 2011 20:15:12 +0000 (21:15 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 23 May 2011 20:15:12 +0000 (21:15 +0100)
retrace.py

index 55df6ce4bc77b1d14f68588083d1a03e3b1d0ae7..a9c5b4d41f8cd84158678ba59bbdc654a5842129 100644 (file)
@@ -237,6 +237,7 @@ class Retracer:
         if function.type is not stdapi.Void:
             print '    %s __result;' % (function.type)
             print '    __result = %s(%s);' % (function.name, arg_names)
+            print '    (void)__result;'
         else:
             print '    %s(%s);' % (function.name, arg_names)