[previous] 3240 [next] inline function '%s' is being defined with external linkage.
Functions REFERENCE - ISO:C99-6.7.4 Function specifiers - Semantics

This is an 'inline definition' of inline function '%s' with external linkage.

Defining an inline function with external linkage is always dangerous and it is recommended that inline functions should always be declared with the static storage class specifier.

For example:


/*PRQA S 1055,2017,3120,3227,3408 ++*/

inline int inf1(int a, int b)                /* 3240 */
{
    return (a + (2 * b));
}

extern inline int inf2(int a, int b)         /* 3408 */
{                                            /* 3243 */
    return (a + (2 * b));
}

See also:

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