Skip to main content

IAR Embedded Workbench for RH850 3.20.x

‑‑require_prototypes

In this section:
Syntax
‑‑require_prototypes
Description

Use this option to force the compiler to verify that all functions have proper prototypes. Using this option means that code containing any of the following will generate an error:

  • A function call of a function with no declaration, or with a Kernighan & Ritchie C declaration

  • A function definition of a public function with no previous prototype declaration

  • An indirect function call through a function pointer with a type that does not include a prototype.

Caution

Project>Options>C/C++ Compiler>Language 1>Require prototypes