Wmain

Warn if return type of main is not expected.

IDE Equivalent

None

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS: -Wmain
  -Wno-main
Windows:  None

Arguments

None

Default

-Wno-main

Description

Warn if return type of main is not expected.

Alternate Options

None