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

IA-32, Intel® 64, IA-64 architectures

Syntax

Linux and Mac 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