MCPcopy Create free account
hub / github.com/apache/thrift / pwarning

Function pwarning

compiler/cpp/src/thrift/main.cc:286–296  ·  view source on GitHub ↗

* Prints a warning message * * @param fmt C format string followed by additional arguments */

Source from the content-addressed store, hash-verified

284 * @param fmt C format string followed by additional arguments
285 */
286void pwarning(int level, const char* fmt, ...) {
287 if (g_warn < level) {
288 return;
289 }
290 va_list args;
291 printf("[WARNING:%s:%d] ", g_curpath.c_str(), yylineno);
292 va_start(args, fmt);
293 vprintf(fmt, args);
294 va_end(args);
295 printf("\n");
296}
297
298/**
299 * Prints a failure message and exits

Callers 15

include_fileFunction · 0.70
clear_doctextFunction · 0.70
check_for_list_of_bytesFunction · 0.70
emit_byte_type_warningFunction · 0.70
generateFunction · 0.70
t_functionMethod · 0.50
is_common_namespaceMethod · 0.50
set_namespaceMethod · 0.50
validate_union_memberMethod · 0.50
t_php_generatorMethod · 0.50
t_py_generatorMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected