Hello,

I'm trying to add "gnulib" to a new project.
My project enables gcc's "-Wswitch-enum -Wswitch-default -Werror" settings.
When adding some gnulib modules, compilation fails.

When adding the "propername" module, I get the following error:
===
unistr/u8-uctomb-aux.c: In function 'u8_uctomb_aux':
unistr/u8-uctomb-aux.c:57:3: error: switch missing default case 
[-Werror=switch-default]
===

When adding the "quote" module, I get the following errors:
===
quotearg.c: In function 'quotearg_buffer_restyled':
quotearg.c:389:11: error: enumeration value 'literal_quoting_style' not handled 
in switch [-Werror=switch-enum]
quotearg.c:389:11: error: enumeration value 'shell_quoting_style' not handled 
in switch [-Werror=switch-enum]
quotearg.c:389:11: error: enumeration value 'c_maybe_quoting_style' not handled 
in switch [-Werror=switch-enum]
quotearg.c:389:11: error: enumeration value 'escape_quoting_style' not handled 
in switch [-Werror=switch-enum]
quotearg.c:389:11: error: enumeration value 'locale_quoting_style' not handled 
in switch [-Werror=switch-enum]
quotearg.c:389:11: error: enumeration value 'clocale_quoting_style' not handled 
in switch [-Werror=switch-enum]
quotearg.c:389:11: error: enumeration value 'custom_quoting_style' not handled 
in switch [-Werror=switch-enum]
===

I am able to use gnulib without those modules, so I'm assuming the basic setup 
in my project (gnulib+autoconf+automake) is fine.

I'm using gnulib from git, version "v0.0-7899-g34f8464" (dated March 19th).

Please advise, if this is a configuration error on my part, or a known problem, 
or simply gnulib can't be used with GCC's extra warnings.

Thanks,
 -gordon

Reply via email to