![]() |
![]() |
3450 | ![]() |
||||
![]() | |||||||
| Declarations and Definitions | |||||||
A function with internal linkage is being defined without any previous declaration. It is sometimes considered helpful to require that all functions which are defined in a file should be preceded by a prototype declaration at the top of the file. This avoids any possibility of the function being called before it has been declared. It is also helpful as a way of documenting function interfaces in one place at the start of the file. For example:
/*PRQA S 553,2017,3219 ++*/
static void foo(void) /* Message 3450 */
{
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |