GNU bug report logs -
#21122
compilation error (-Wunused-macros) with gcc-5.2
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Sat, 1 Aug 2015 09:17:54 -0700
with message-id <CA+8g5KFfbqmyTVG=ksucX3q+CDFMAB8o=c4U0epMxwOyOPpt6A <at> mail.gmail.com>
and subject line Re: bug#21122: compilation error (-Wunused-macros) with gcc-5.2
has caused the debbugs.gnu.org bug report #21122,
regarding compilation error (-Wunused-macros) with gcc-5.2
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
21122: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21122
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Hello,
compiling sed from git (v4.2.2-89-ge387009) fails with gcd-5.2 due to -Wunused-macros (and -Werror):
===
make[3]: Entering directory `/home/gordon/sources/sed/sed'
CC compile.o
compile.c:36:0: error: macro "OPEN_BRACE" is not used [-Werror=unused-macros]
#define OPEN_BRACE '{'
^
compile.c:183:0: error: macro "END_ERRORS" is not used [-Werror=unused-macros]
#define END_ERRORS (INCOMPLETE_CMD + sizeof(N_("incomplete command")))
^
cc1: all warnings being treated as errors
make[3]: *** [compile.o] Error 1
===
The attached patch comments-out the two macros. Alternatively they could be simply erased.
regards,
- assaf
P.S.
I don't yet have copyright assignment for sed, but I think this change is trivial enough.
[sed-unused-macros.patch (text/x-diff, attachment)]
[Message part 5 (message/rfc822, inline)]
On Thu, Jul 23, 2015 at 2:42 PM, Assaf Gordon <assafgordon <at> gmail.com> wrote:
> Hello,
>
> compiling sed from git (v4.2.2-89-ge387009) fails with gcd-5.2 due to
> -Wunused-macros (and -Werror):
>
> ===
> make[3]: Entering directory `/home/gordon/sources/sed/sed'
> CC compile.o
> compile.c:36:0: error: macro "OPEN_BRACE" is not used
> [-Werror=unused-macros]
> #define OPEN_BRACE '{'
> ^
> compile.c:183:0: error: macro "END_ERRORS" is not used
> [-Werror=unused-macros]
> #define END_ERRORS (INCOMPLETE_CMD + sizeof(N_("incomplete command")))
> ^
> cc1: all warnings being treated as errors
> make[3]: *** [compile.o] Error 1
> ===
>
> The attached patch comments-out the two macros. Alternatively they could be
> simply erased.
Thank you. I've pushed that with slight tweaks to the commit log.
> P.S.
> I don't yet have copyright assignment for sed, but I think this change is
> trivial enough.
Yes, that's fine.
This bug report was last modified 9 years and 356 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.