>From 9f3be7fc52f3b5b8f8dab5941f1173806526f786 Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Thu, 23 Jul 2015 17:23:20 -0400 Subject: [PATCH] build: comment-out unused macros * sed/compile.c: comment-out OPEN_BRACE, END_ERRORS to prevent gcc-5.2 from failing with -Werror -Wunused-macros. --- sed/compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sed/compile.c b/sed/compile.c index 51fd24d..51103e5 100644 --- a/sed/compile.c +++ b/sed/compile.c @@ -33,7 +33,7 @@ /* let's not confuse text editors that have only dumb bracket-matching... */ #define OPEN_BRACKET '[' #define CLOSE_BRACKET ']' -#define OPEN_BRACE '{' +/* #define OPEN_BRACE '{' */ #define CLOSE_BRACE '}' struct prog_info { @@ -180,7 +180,7 @@ static const char errors[] = #define UNKNOWN_CMD (INVALID_LINE_0 \ + sizeof(N_("invalid usage of line address 0"))) #define INCOMPLETE_CMD (UNKNOWN_CMD + sizeof(N_("unknown command: `%c'"))) -#define END_ERRORS (INCOMPLETE_CMD + sizeof(N_("incomplete command"))) +/* #define END_ERRORS (INCOMPLETE_CMD + sizeof(N_("incomplete command"))) */ static struct output *file_read = NULL; static struct output *file_write = NULL; -- 1.9.1