aboutsummaryrefslogtreecommitdiff
path: root/tools/bindings_generator.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-02-03 15:36:45 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-02-03 15:36:45 -0800
commit983bb3504f9632955301a314a3c51550b5ca1348 (patch)
tree82f5bdd823e55ecd09b82d4df29350d5935d5006 /tools/bindings_generator.py
parenta122841331980a08a2283a555cadd9ba314240c7 (diff)
prevent warning from bindings generator output compilation
Diffstat (limited to 'tools/bindings_generator.py')
-rwxr-xr-xtools/bindings_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bindings_generator.py b/tools/bindings_generator.py
index d999bdd1..bdb3e755 100755
--- a/tools/bindings_generator.py
+++ b/tools/bindings_generator.py
@@ -581,7 +581,7 @@ def generate_class(generating_classname, classname, clazz): # TODO: deprecate ge
staticize = not constructor and ret.replace(' ', '') != 'void' and method['returns'] in classes and (not method['returns_reference'] and not method['returns_pointer'])
# Make sure to mark our bindings wrappers in a way that they will not be inlined, eliminated as unneeded, or optimized into other signatures
gen_c.write('''
-%s __attribute__((externally_visible, used, noinline)) %s_p%d(%s) {''' % (ret if not staticize else (ret + '&'), fullname, i,
+%s __attribute__((used, noinline)) %s_p%d(%s) {''' % (ret if not staticize else (ret + '&'), fullname, i,
', '.join(typedargs(args)[:i + (0 if not need_self else 1)])))
if not staticize:
gen_c.write('\n')