Wreturn-type

Warns 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Ū EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux: -Wreturn-type
  -Wno-return-type
Windows:  None

Arguments

None

Default

OFF  

Description

Warns when a function uses the default int return type or when a return statement is used in a void function.

Alternate Options

None