MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / warning

Method warning

tools/diagnostics.py:117–126  ·  view source on GitHub ↗
(self, warning_type, message, *args)

Source from the content-addressed store, hash-verified

115 return cmd_args
116
117 def warning(self, warning_type, message, *args):
118 warning_info = self.warnings[warning_type]
119 msg = (message % args) + ' [-W' + warning_type.lower().replace('_', '-') + ']'
120 if warning_info['enabled']:
121 if warning_info['error']:
122 error(msg + ' [-Werror]')
123 else:
124 warn(msg)
125 else:
126 logger.debug('disabled warning: ' + msg)
127
128
129def add_warning(name, enabled=True, part_of_all=True, shared=False, error=False):

Callers 15

embuilder.pyFile · 0.80
mainFunction · 0.80
phase_setupFunction · 0.80
phase_compile_inputsFunction · 0.80
read_configFunction · 0.80
warningFunction · 0.80
is_supportedFunction · 0.80
setup_pthreadsFunction · 0.80
set_max_memoryFunction · 0.80
check_settingsFunction · 0.80

Calls 3

lowerMethod · 0.80
errorFunction · 0.70
warnFunction · 0.70

Tested by

no test coverage detected