[cfe-commits] [PATCH] Re-enabled and fixed fixit for main returning non-int

Joerg Sonnenberger joerg at britannica.bec.de
Wed Mar 16 18:42:56 PDT 2011


On Wed, Mar 16, 2011 at 08:37:09PM -0500, Ryan Gerleve wrote:
> signed long main() {}
> 
> Here, there are multiple fixits that could result in a correct program.
> 1. Remove 'long',
> 2. Replace 'long' with 'int', or
> 3. Replace 'signed long' with 'int'.

Go with (3). IMO there is exactly one situation when signed has actual
semantic value and that's in combination with char. Otherwise it is just
syntactic sugar.

Joerg



More information about the cfe-commits mailing list