Ansicht
Dokumentation

CZM0303 - The type of the parameter &1 cannot conflict with the previous declaration of function &2. ( OS/400 )

CZM0303 - The type of the parameter &1 cannot conflict with the previous declaration of function &2. ( OS/400 )

General Material Data   Addresses (Business Address Services)  
Diese Dokumentation steht unter dem Copyright der IBM.
SAP E-Book


Nachricht : CZM0303
The type of the parameter &1 cannot conflict with the previous declaration of function &2.

Nachrichtenlangtext :

Cause . . . . . : Nonprototype function declarations, popularly known as K&R prototypes, specify only the function return type. The function parentheses are empty; no information about the parameters is given.
Nonprototype function definitions specify a list of parameter names appearing between the function parentheses followed by a list of declarations (located between the parentheses and the opening left brace of the function) that indicates the type of the parameters. A nonprototype function definition is also known as a K&R function definition.
A prototype function declaration or definition specifies the type and the number of the parameters in the parameter declaration list that appears inside the function parenthesis. A prototype function declaration is better known as an ANSI prototype, and a prototype function definition is better known as an ANSI function definition.
When the nonprototype function declarations/definitions are mixed with prototype declarations, the type of each prototype parameter must be compatible with the type that results from the application of the default argument promotions.
Most types are already compatible with their default argument promotions. The only ones that aren't are char, short, and float. Their promoted versions are, respectively, int, int, and double.
This message can occur in several situations. The most common is when mixing ANSI prototypes with K&R function definitions. If a function is defined using a K&R-style header, then its prototype, if present, must specify widened versions of the parameter types.
Recovery . . . : Give a promoted type to the parameter in the prototype function declaration.

Nachrichtendatei : QCZXLCMSG
Bibliothek Nachrichtendatei : QSYS


ROGBILLS - Synchronize billing plans   Fill RESBD Structure from EBP Component Structure  
Diese Dokumentation steht unter dem Copyright der IBM.

Length: 3295 Date: 20240420 Time: 080419     sap01-206 ( 3 ms )