[Libreoffice] OT: make enums more typesafe

Caolán McNamara caolanm at redhat.com
Mon Jan 31 02:52:58 PST 2011


On Fri, 2011-01-28 at 20:18 +0100, Enrico Weigelt wrote:
> Hi folks,
> 
> 
> OT, but perhaps somebody might know an answer:
> 
> is there a way (w/ recent gcc) make forbid the compile fail when
> enums and ints get mixed up (eg. numeric operations or assignments
> from/to int) ?

Well -fpermissive will turn it from an error to a warning.

C.



More information about the LibreOffice mailing list