[previous] 0344 [next] Using function prototype syntax.
K+R compatibility REFERENCE - ISO:C90-6.5.4.3 Function Declarators (Including Prototypes)

Function prototype syntax is being used. Function prototypes were not supported in early versions of the C language.

Be aware that message 0344 is only generated when the "-k+r p" option is enabled. Notice also that when this option is enabled, messages which identify old style function syntax are no longer generated (i.e. messages 1303, 3001, 1304 and 3002).

For example:


/*PRQA S 553,2017,2115,3206,3408,3447 ++*/
/*****************************
 * OPTIONS: -k+r p
 ****************************/

extern int f1(short a, long b);                   /* Message 0344 */
extern int f2();                                  /*              */

extern int f1(short a, long b)                    /* Message 0344 */
{
    return 1;
}

extern int f2(a, b)
short a;
long  b;
{
    return 1;
}

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents