Intel® C++ Compiler XE 13.1 User and Reference Guides

Wreturn-type

Determines whether warnings are issued when a function uses the default int return type or when a return statement is used in a void function.

IDE Equivalent

None

Architectures

All

Syntax

Linux and OS X:

-Wreturn-type

-Wno-return-type

Windows:

None

Arguments

None

Default

-Wno-return-type

No warnings are issued when a function uses the default int return type or when a return statement is used in a void function.

Description

This option determines whether warnings are issued when a function uses the default int return type or when a return statement is used in a void function.

Alternate Options

None


Submit feedback on this help topic