GNU bug report logs - #21122
compilation error (-Wunused-macros) with gcc-5.2

Previous Next

Package: sed;

Reported by: Assaf Gordon <assafgordon <at> gmail.com>

Date: Thu, 23 Jul 2015 21:43:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: bug-sed <at> gnu.org
Subject: compilation error (-Wunused-macros) with gcc-5.2
Date: Thu, 23 Jul 2015 17:42:19 -0400
[Message part 1 (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)]

This bug report was last modified 9 years and 355 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.