Skip to content

Commit d738bf5

Browse files
Merge pull request #126 from nauaneed/nauaneed-patch-1
transpiler: func name in warning for implicit symbols
2 parents bc858ba + b72cf17 commit d738bf5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

compyle/transpiler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,11 @@ def _handle_external(self, func, declarations=None):
256256
func, self.backend
257257
)
258258
if implicit and not get_config().suppress_warnings:
259-
msg = ('Warning: the following symbols are implicitly defined.\n'
259+
msg = ('Warning: the following symbols are implicitly defined '
260+
'in function "%s".\n'
260261
' %s\n'
261262
'You may want to explicitly declare/define them.'
262-
% implicit)
263+
% (func.__name__, implicit))
263264
print(msg)
264265

265266
self._handle_externs(externs)

0 commit comments

Comments
 (0)