diag0200.chk
来自「开放源码的编译器open watcom 1.6.0版的源代码」· CHK 代码 · 共 1,099 行 · 第 1/5 页
CHK
1,099 行
'void S::foo( void )' defined at: (3,10)
(9,1): Warning! W726: no reference to formal parameter 'q1'
'int q1' in 'void foo( S const *, int, int, int, int, int )' defined at: (6,27)
(9,1): Warning! W726: no reference to formal parameter 'q2'
'int q2' in 'void foo( S const *, int, int, int, int, int )' defined at: (6,35)
(9,1): Warning! W726: no reference to formal parameter 'q3'
'int q3' in 'void foo( S const *, int, int, int, int, int )' defined at: (6,43)
(9,1): Warning! W726: no reference to formal parameter 'q4'
'int q4' in 'void foo( S const *, int, int, int, int, int )' defined at: (6,51)
(9,1): Warning! W726: no reference to formal parameter 'q5'
'int q5' in 'void foo( S const *, int, int, int, int, int )' defined at: (6,59)
(13,6): Error! E419: cannot call non-const function for a constant object
'void S::foo( void )' defined at: (3,10)
(14,5): Error! E419: cannot call non-const function for a constant object
'void S::foo( void )' defined at: (3,10)
(15,5): Error! E133: too many errors: compilation aborted
File: ..\diagnose\source\diag0216.c
(22,18): Warning! W005: pointer or reference truncated
(39,5): Error! E161: attempt to call member function for far object when the data model is near
(39,10): Warning! W005: pointer or reference truncated
(40,10): Warning! W005: pointer or reference truncated
(41,5): Error! E161: attempt to call member function for far object when the data model is near
(44,5): Error! E161: attempt to call member function for far object when the data model is near
'NONPODS & NONPODS::operator =( NONPODS const & )' defined at: (14,14)
(45,10): Warning! W005: pointer or reference truncated
(46,5): Error! E161: attempt to call member function for far object when the data model is near
'NONPODS & NONPODS::operator =( NONPODS const & )' defined at: (14,14)
(49,5): Error! E160: attempt to destruct a far object when data model is near
'PODS::~PODS( void )' defined at: (49,7)
(52,5): Error! E160: attempt to destruct a far object when data model is near
'NONPODS::~NONPODS( void )' defined at: (52,7)
(55,15): Warning! W005: pointer or reference truncated
(58,18): Warning! W005: pointer or reference truncated
(61,10): Warning! W005: pointer or reference truncated
(64,10): Warning! W005: pointer or reference truncated
(67,10): Warning! W005: pointer or reference truncated
(70,10): Warning! W005: pointer or reference truncated
(73,10): Warning! W005: pointer or reference truncated
(76,10): Warning! W005: pointer or reference truncated
File: ..\diagnose\source\diag0217.c
(11,10): Error! E186: attempt to modify a constant value
(12,10): Error! E186: attempt to modify a constant value
File: ..\diagnose\source\diag0218.c
(1,26): Warning! W725: "hello"
(8,5): Warning! W013: unreachable code
(16,9): Warning! W013: unreachable code
(25,5): Warning! W013: unreachable code
(27,1): Error! E003: missing return value
(35,13): Warning! W013: unreachable code
(46,13): Warning! W013: unreachable code
(49,1): Error! E003: missing return value
(57,13): Warning! W013: unreachable code
(60,1): Error! E003: missing return value
(75,26): Warning! W725: "hello"
(76,18): Error! E028: expecting ')' but found '/'
(76,20): Error! E028: expecting 'end of line' but found ')'
(77,15): Error! E080: there.
(78,15): Error! E028: expecting 'end of line' but found '/'
(83,1): Warning! W014: no reference to symbol 'c'
'int c' in 'int x76( int, int )' defined at: (81,9)
(83,1): Warning! W014: no reference to symbol 'd'
'int d' in 'int x76( int, int )' defined at: (81,12)
(83,1): Warning! W726: no reference to formal parameter 'a'
'int a' in 'int x76( int, int )' defined at: (79,14)
(83,1): Warning! W726: no reference to formal parameter 'b'
'int b' in 'int x76( int, int )' defined at: (79,21)
(85,37): Error! E329: modifiers of 'x83' conflict with previous declaration
'int __export x83' defined at: (84,34)
(85,37): Error! E042: symbol 'x83' already defined
'int __export x83' defined at: (84,34)
(87,37): Error! E329: modifiers of 'x85' conflict with previous declaration
'int __export x85' defined at: (86,21)
(87,37): Error! E042: symbol 'x85' already defined
'int __export x85' defined at: (86,21)
(89,27): Error! E416: data members cannot be initialized inside a class definition
(90,27): Error! E416: data members cannot be initialized inside a class definition
(91,19): Error! E417: only virtual functions may be declared pure
(92,19): Error! E137: pure member function constant must be '0'
(92,19): Error! E417: only virtual functions may be declared pure
(94,27): Error! E137: pure member function constant must be '0'
(103,10): Error! E186: attempt to modify a constant value
(104,10): Error! E186: attempt to modify a constant value
File: ..\diagnose\source\diag0219.c
(9,18): Error! E328: storage class of 'g' conflicts with previous declaration
'char * g( void )' defined at: (8,7)
(30,6): Error! E042: symbol 'a' already defined
'int a' defined at: (29,12)
(34,13): Error! E328: storage class of 'c' conflicts with previous declaration
'int c' defined at: (33,5)
(34,13): Error! E042: symbol 'c' already defined
'int c' defined at: (33,5)
(36,13): Error! E328: storage class of 'd' conflicts with previous declaration
'int d' defined at: (35,12)
(36,13): Error! E042: symbol 'd' already defined
'int d' defined at: (35,12)
End of file
Warning! W014: no reference to symbol 'f'
'char * f( void )' defined at: (4,7)
Warning! W014: no reference to symbol 'a'
'int a' defined at: (29,12)
Warning! W014: no reference to symbol 'b'
'int b' defined at: (31,12)
File: ..\diagnose\source\diag0220.c
(85,6): Error! E686: attempt to convert pointer or reference from a base to a derived class
source conversion type is "B69 (lvalue)"
target conversion type is "D72 (lvalue)"
(86,6): Error! E686: attempt to convert pointer or reference from a base to a derived class
source conversion type is "B69 *"
target conversion type is "D72 *"
(106,6): Error! E525: conversion of object to class of member pointer involves a private base class
source conversion type is "D (lvalue)"
target conversion type is "B (lvalue)"
(128,6): Error! E524: conversion ambiguity: [object] to [class object of pointer to class member]
source conversion type is "D (lvalue)"
target conversion type is "A (lvalue)"
File: ..\diagnose\source\diag0221.c
(2,39): Warning! W399: 'new' expression allocates a 'const' or 'volatile' object
(2,12): Error! E405: cannot return a pointer or reference to a constant object
source conversion type is "unsigned long const *"
target conversion type is "unsigned long volatile *"
(20,15): Error! E148: access to private member 'F12::operator int ' is not allowed
'F12::operator int ()' defined at: (15,5)
source conversion type is "F12 (lvalue)"
target conversion type is "int"
(21,18): Error! E148: access to private member 'F12::operator int ' is not allowed
'F12::operator int ()' defined at: (15,5)
source conversion type is "F12 (lvalue)"
target conversion type is "int"
(31,38): Error! E541: pointers to class members reference different object types
source conversion type is "int cdecl (X24::* )( int )"
target conversion type is "int cdecl (__export X24::* )( int )"
(36,21): Error! E316: anonymous struct/union member 'T' is not distinct in enclosing scope
(44,5): Error! E727: cannot dereference a pointer to 'void'
operand type is 'void *'
(45,9): Error! E727: cannot dereference a pointer to 'void'
operand type is 'void *'
(46,10): Error! E727: cannot dereference a pointer to 'void'
operand type is 'void *'
(47,5): Error! E196: 'sizeof' is not allowed for a type 'void'
(98,12): Error! E253: '::' qualifier cannot be used in this context
(98,12): Error! E336: declaration specifiers are required to declare 'q'
(99,12): Error! E241: 'class D' has not been declared
(111,10): Error! E547: cannot access 'BB::n' through a private base class
'int X95::BB::n' defined at: (103,13)
(116,11): Error! E079: missing ) for expansion of 'x115' macro
(116,11): Error! E762: binary operator '+' missing right operand
(137,14): Warning! W086: definition of macro 'X136' not identical to previous definition
File: ..\diagnose\source\diag0222.c
(12,1): Warning! W188: base class is inherited with private access
(36,13): Error! E394: reference object must be initialized
(37,16): Error! E394: reference object must be initialized
(39,20): Error! E686: attempt to convert pointer or reference from a base to a derived class
source conversion type is "BASE (lvalue)"
target conversion type is "INHERIT (lvalue)"
(40,23): Error! E220: cannot define a reference to 'void'
(40,23): Error! E394: reference object must be initialized
(42,10): Error! E378: private base class accessed to convert argument expression
source conversion type is "INHERIT (lvalue)"
target conversion type is "BASE const (lvalue)"
(45,8): Error! E473: function argument(s) do not match those in prototype
'void fir( INHERIT & )' defined at: (23,6)
cannot convert argument 1 defined at: (45,10)
source conversion type is "BASE (lvalue)"
target conversion type is "INHERIT (lvalue)"
(46,8): Error! E473: function argument(s) do not match those in prototype
'void fir( INHERIT & )' defined at: (23,6)
cannot convert argument 1 defined at: (46,10)
source conversion type is "BASE (lvalue)"
target conversion type is "INHERIT (lvalue)"
(47,8): Error! E475: cannot assign right expression to class object
'INHERIT & INHERIT::operator =( INHERIT const & )' defined at: (48,1)
cannot convert argument 1 defined at: (47,10)
source conversion type is "BASE (lvalue)"
target conversion type is "INHERIT const (lvalue)"
(48,1): Warning! W014: no reference to symbol 'bad_ref_void'
'void & bad_ref_void' in 'void main( void )' defined at: (40,11)
File: ..\diagnose\source\diag0223.c
(17,11): Error! E126: class 'S2' has already been defined
(18,11): Error! E126: class 'S2' has already been defined
(27,23): Error! E003: missing return value
(30,16): Error! E498: syntax error before 's'; probable cause: incorrectly spelled type name
(36,1): Error! E370: constructor is required for a class with a const member
(42,15): Error! E336: declaration specifiers are required to declare 'S3_1'
(42,6): Error! E498: syntax error before 'gs3_1_new'; probable cause: incorrectly spelled type name
(48,12): Error! E042: symbol 'S4::i' already defined
'int S4::i' defined at: (47,9)
(50,13): Error! E258: cannot declare both a function and variable of the same name ('a')
(54,24): Error! E254: 'S4::new_member' has not been declared as a member
'int S4::new_member( int )' defined at: (54,5)
(59,17): Error! E416: data members cannot be initialized inside a class definition
(60,23): Error! E416: data members cannot be initialized inside a class definition
(61,16): Error! E118: nameless declaration is not allowed
(61,16): Error! E006: syntax error; probable cause: missing ';'
(62,26): Error! E177: invalid storage class in file scope
(64,15): Error! E177: invalid storage class in file scope
(65,12): Error! E336: declaration specifiers are required to declare 'array'
(65,12): Error! E121: syntax error
(66,10): Error! E336: declaration specifiers are required to declare 'wrong'
(66,10): Error! E121: syntax error
(68,11): Error! E326: defining 'bs5' is not possible because its type has unknown size
'S5 bs5' defined at: (68,8)
(70,1): Error! E121: syntax error
(75,15): Error! E127: 'sizeof' is not allowed for an undefined type
(77,32): Error! E121: syntax error
(77,34): Error! E121: syntax error
(78,32): Error! E121: syntax error
(78,34): Error! E121: syntax error
(80,1): Error! E121: syntax error
(84,25): Error! E036: dimensions of multi-dimension array must be specified
(84,25): Error! E681: zero size array must be the last data member
(84,25): Error! E326: defining 'S7::ia' is not possible because its type has unknown size
'int S7::ia[4][][16]' defined at: (84,9)
(85,32): Error! E036: dimensions of multi-dimension array must be specified
(85,32): Error! E681: zero size array must be the last data member
(85,32): Error! E326: defining 'S7::ua' is not possible because its type has unknown size
'unsigned S7::ua[12][256][]' defined at: (85,14)
(91,18): Error! E284: nested type 'S8' cannot be declared in this class
(92,23): Error! E285: enumerator 'S8' cannot be declared in this class
(96,6): Error! E316: anonymous struct/union member 'S8' is not distinct in enclosing scope
(100,15): Error! E284: nested type 'S8_1' cannot be declared in this class
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?