GNOME Bugzilla – Bug 784957
build failure with gcc 7.1.1
Last modified: 2017-07-15 13:31:22 UTC
Created attachment 355614 [details] [review] Remove extra 'const' gcc 7.1.1 complains about duplicate ‘const’ declaration specifier.
This doesn't look at all right to me. What specifically does the compiler complain about?
CC rb-text-helpers.lo rb-text-helpers.c:52:19: error: duplicate ‘const’ declaration specifier [-Werror=duplicate-decl-specifier] static const char const *UNICODE_LRM = "\xE2\x80\x8E"; ^~~~~ rb-text-helpers.c:53:19: error: duplicate ‘const’ declaration specifier [-Werror=duplicate-decl-specifier] static const char const *UNICODE_RLM = "\xE2\x80\x8F"; ^~~~~ rb-text-helpers.c:54:19: error: duplicate ‘const’ declaration specifier [-Werror=duplicate-decl-specifier] static const char const *UNICODE_LRE = "\xE2\x80\xAA"; ^~~~~ rb-text-helpers.c:55:19: error: duplicate ‘const’ declaration specifier [-Werror=duplicate-decl-specifier] static const char const *UNICODE_RLE = "\xE2\x80\xAB"; ^~~~~ rb-text-helpers.c:56:19: error: duplicate ‘const’ declaration specifier [-Werror=duplicate-decl-specifier] static const char const *UNICODE_PDF = "\xE2\x80\xAC"; ^~~~~
Created attachment 355677 [details] [review] more likely patch this is what the code was intending to do
(In reply to Jonathan Matthew from comment #3) > Created attachment 355677 [details] [review] [review] > more likely patch > > this is what the code was intending to do Thanks. it compiles correctly now.
Review of attachment 355677 [details] [review]: pushed as commit 40753f9
Thank you for looking into this and for the fix.