[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compilation errors when using extended GCC warnings
From: |
Assaf Gordon |
Subject: |
Compilation errors when using extended GCC warnings |
Date: |
Fri, 29 Mar 2013 18:27:51 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 |
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
- Compilation errors when using extended GCC warnings,
Assaf Gordon <=