Intel® C++ Compiler 16.0 User and Reference Guide

Wreturn-type

Determines whether warnings are issued when a function is declared without a return type, when the definition of a function returning void contains a return statement with an expression, or when the closing brace of a function returning non-void is reached.

Syntax

Linux and OS X:

-Wreturn-type

-Wno-return-type

Windows:

None

Arguments

None

Default

ON for one condition

A warning is issued when the closing brace of a function returning non-void is reached.

Description

This option determines whether warnings are issued for the following:

Specify -Wno-return-type if you do not want to see warnings about the above diagnostics.

IDE Equivalent

None

Alternate Options

None