Merge pull request #387 from Douglasj/master

Includes unused_variable in Codegen
This commit is contained in:
Brian Anderson 2013-04-20 14:49:16 -07:00
commit c1cfe575b7
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ rust: $(CFG_RUSTC)
define DEF_SUBMODULE_VARS
DEPS_$(1) =
CFLAGS_$(1) = -O2
CFLAGS_$(1) = $$(CFLAGS)
# any "done" dummy files must be named libSOMETHING.dummy.
#
# We can't auto-compute this, because some modules have lib* prefix in

View file

@ -2142,7 +2142,7 @@ class CGImports(CGWrapper):
# TODO imports to cover descriptors, etc.
def _useString(imports):
return '#[allow(unused_imports)];' + ''.join(['use %s;\n' % i for i in imports]) + '\n'
return '#[allow(unused_imports,unused_variable)];' + ''.join(['use %s;\n' % i for i in imports]) + '\n'
CGWrapper.__init__(self, child,
declarePre=_useString(sorted(declareImports)))