📄 message.h
字号:
* Level 3 * Warnings at this level are often encountered when porting * code. They are quite likely to indicate an error. */ MSG (WARN_DUBIOUS, warn_dubious, "dubious %s declaration; use tag only") MSG (WARN_ESCAPECH, warn_escapech, "escape ignored in sequence '\\%c'") MSG (WARN_IMPLICITFN, warn_implicitfn, "implicitly declared function: 'int %s()'") MSG (WARN_LOCAL, warn_local, "returning address of a local variable") MSG (WARN_OUTSCOPE, warn_outscope, "using out of scope declaration for '%s'") MSG (WARN_PTRCAST, warn_ptrcast, "conversion between incompatible pointer types") MSG (WARN_QUALIFIER, warn_qualifier, "qualifier inconsistent with type 'void'") MSG (WARN_RANGEI, warn_rangei, "constant %ld not within range of type '%s'") MSG (WARN_RANGEU, warn_rangeu, "constant 0x%lx not within range of type '%s'") MSG (WARN_SHORTPTR, warn_shortptr, "dangerous truncation of pointer to '%s'") MSG (WARN_STATIC, warn_static, "function '%s' declared but never defined") MSG (WARN_STDARG, warn_stdarg, "parameter before ', ...' causes undefined behaviour") MSG (WARN_REDECL, warn_redecl, "redeclaration of '%s'") MSG (WARN_VALRETURN, warn_valreturn, "no value specified in 'return' statement") MSG (WARN_UNSIGNED, warn_unsigned, "'%s' is always positive") MSG (WARN_ZERO, warn_zero, "division by zero")/* * Level 4 * Warnings at this level are often encountered when porting * code, but are quite likely not be an error. */ MSG (WARN_ADDFUNC, warn_addfunc, "& operator on function ignored") MSG (WARN_ARRAY, warn_array, "array type used in '%s' statement") MSG (WARN_CASTCONST, warn_castconst, "implicit cast of pointer loses const/volatile qualifier") MSG (WARN_CONDVOID, warn_condvoid, "%d expression to '?:' operator cast to 'void'") MSG (WARN_EMPTY, warn_empty, "empty statement") MSG (WARN_EMPTYIF, warn_emptyif, "'if' statement has no effect") MSG (WARN_GLOBAL, warn_global, "function '%s' redeclared, assumed static") MSG (WARN_HIDE, warn_hide, "definition of '%s' hides an earlier definition") MSG (WARN_IMPLICIT, warn_implicit, "argument '%s' implicitly declared 'int'") MSG (WARN_NOTREACHED, warn_notreached, "statement not reached") MSG (WARN_POINTER, warn_pointer, "pointer difference between different pointer types") MSG (WARN_PROTOTYPE, warn_prototype, "K&R style function %s") MSG (WARN_PROMOTE, warn_promote, "parameter %d to function %s() promoted to '%s'") MSG (WARN_SHIFT, warn_shift, "shift by %ld outside range of '%s'") MSG (WARN_STORAGE, warn_storage, "storage specifier not at start of definition")/* * Level 5 * These are warnings for things that are common C practise, but * that might possibly indicate an error if you are having trouble * tracking down a particular problem */ MSG (WARN_ACCESS, warn_access, "'%s' modified and accessed between sequence points") MSG (WARN_ASSIGN, warn_assign, "assignment in conditional context") MSG (WARN_CONST, warn_const, "constant expression used in '%s' statement") MSG (WARN_CONSTINIT, warn_constinit, "'%s' has 'const' qualifier but is not initialised") MSG (WARN_DISCARD, warn_discard, "result of expression has been discarded") MSG (WARN_ELSE, warn_else, "dangling 'else' statement") MSG (WARN_FORMAT, warn_format, "format mismatch with parameter %d on function '%s()'") MSG (WARN_IGNORE, warn_ignore, "ignored return value from function %s") MSG (WARN_IMPLICITRET, warn_implicitret, "no value specified in implicit 'return' statement") MSG (WARN_LABNOTUSED, warn_labnotused, "label '%s' declared but not used") MSG (WARN_MINUS, warn_minus, "unary '-' applied to unsigned expression") MSG (WARN_MODIFIED, warn_modified, "'%s' modified more than once between sequence points") MSG (WARN_NOPROTO, warn_noproto, "no prototype defined on called function %s") MSG (WARN_NOTSET, warn_notset, "variable '%s' may be used before set") MSG (WARN_NOTUSED, warn_notused, "variable/function '%s' not used")/* * Level 6 - Only output if checking for portability * Warnings at this level are normally too pedantic to be useful */ MSG (WARN_CHAR, warn_char, "use of 'char' is possibly non-portable") MSG (WARN_CHARINDEX, warn_charindex, "use of 'char' as array index is possibly non-portable") MSG (WARN_CONSTANT, warn_constant, "constant promoted to '%s'") MSG (WARN_ENUM, warn_enum, "implicit cast of '%s' to enumeration value")#ifdef FLOAT_CHECK MSG (WARN_FLOAT, warn_float, "expression involving floating point")#endif /* FLOAT_CHECK */ MSG (WARN_INCOMPLETE, warn_incomplete, "initialisation incomplete - remaining fields zeroed") MSG (WARN_NARROWER, warn_narrower, "a cast from '%s' to '%s' loses accuracy") MSG (WARN_STDARG2, warn_stdarg2, "parameter before ', ...' causes undefined behaviour") MSG (WARN_UNDEFINED, warn_undefined, "signed operand to '%s' implementation defined") MSG (WARN_WIDER, warn_wider, "possible unnecessary cast from '%s' to '%s'")/* * Level 7 - Only output if you are wishing to "tidy" up your code * Warnings at this level are normally too pedantic to be useful */ MSG (WARN_BRACE, warn_brace, "partially elided braces on initializer") MSG (WARN_DEFAULT, warn_default, "'switch' has no 'default' statement")#ifdef FACIST MSG (WARN_KEYWORD, warn_keyword, "C++ keyword '%s' used")#endif /* FACIST */ MSG (WARN_NOT, warn_not, "'!' operator used with a constant expression") MSG (WARN_NULLCAST, warn_nullcast, "implicit cast of 0 to pointer type") MSG (WARN_OLDDEF, warn_olddef, "function not using ANSI style parameters") MSG (WARN_VOID, warn_void, "unnecessary cast to 'void'")#ifdef FACIST/* * Level 8 - Only output if really strict checking is to be done. * Warnings at this level are really "facist". */ MSG (WARN_DUPDECL, warn_dupdecl, "'%s' has already been declared") MSG (WARN_NOIMPLICIT, warn_noimplicit, "implicit cast from '%s' to '%s'") MSG (WARN_PREVDECL, warn_prevdecl, "'%s' has not been previously declared")#endif /* FACIST */#endif /* SYNTAX_CORRECT *//* * Messages below this point are output without file/line number details *//* * Miscellaneous messages */ MSG (MSG_ENUMOPT, msg_enumopt, "unknown enumerated value '%s' to option '-%s'")
MSG (MSG_ERROR, msg_error, "error") MSG (MSG_ERRORCNT, msg_errorcnt, "\n -- %d errors found") MSG (MSG_EXTRAPARAM, msg_extraparam, "too many parameters supplied") MSG (MSG_FATAL, msg_fatal, "FATAL error encountered in file '%s' routine '%s'\nMessage: ") MSG (MSG_LINE, msg_line, "\"%s\", line %u: ") MSG (MSG_LOCALMEM, msg_localmem, "not enough local memory (%d Kbytes used) [global %d Kbytes]") MSG (MSG_MAXERROR, msg_maxerror, "Program terminated due to maximum error count") MSG (MSG_MAXMEMORY, msg_maxmemory, "Maximum memory request was %d Kbytes") MSG (MSG_MISSING, msg_missing, "\n(this may occur due to a feature left out of the compiler, or just an\ninternal compiler error)") MSG (MSG_NOMEMORY, msg_nomemory, "not enough global memory (%d Kbytes used) [local %d Kbytes]") MSG (MSG_OPENINPUT, msg_openinput, "Cannot open file '%s' for input")#ifdef LIST MSG (MSG_OPENLISTING, msg_openlisting, "Cannot open file '%s' for listing")#endif /*LIST */ MSG (MSG_OPENOUTPUT, msg_openoutput, "Cannot open file '%s' for output") MSG (MSG_OPTPHASE, msg_optphase, "\n%sOption settings:") MSG (MSG_PEEPLABEL, msg_peeplabel, "INCONSISTENCY: PEEP LABEL (FATAL?)")#ifdef VERBOSE MSG (MSG_PEEPCHANGES, msg_peepchanges, "\t%d changes made") MSG (MSG_RELEASEGLB, msg_releaseglb, "releasing %d Kbytes global tables") MSG (MSG_RELEASELOC, msg_releaseloc, "releasing %d Kbytes local tables")#endif /* VERBOSE */#ifdef SIGNAL MSG (MSG_SIGNAL, msg_signal, "TERMINATING: - signal %d received\n")#endif /* SIGNAL */#ifdef VERBOSE MSG (MSG_TIMES, msg_times, "Times: %ld + %ld + %ld + %ld")#endif /* VERBOSE */ MSG (MSG_UNKNOWNOPT, msg_unknownopt, "option '%s' not recognised") MSG (MSG_USAGE, msg_usage, "\nUsage: %s [options] [input_file [output_file [listing_file]]]") MSG (MSG_WARNING, msg_warning, "warning") MSG (MSG_WRITEFAIL, msg_writefail, "write failure")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -