[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] build: avoid build failure with --enable-gcc-warnings
From: |
Jim Meyering |
Subject: |
[PATCH] build: avoid build failure with --enable-gcc-warnings |
Date: |
Fri, 12 Mar 2010 19:35:46 +0100 |
I'm pushing this, to fix a build failure
when configured with --enable-gcc-warnings:
dfa.c:35:1: error: macro "assert" is not used
make[2]: *** [dfa.o] Error 1
>From 2d6b4e93db8058d23d4e37734b6ad65f9f05872b Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 12 Mar 2010 19:33:58 +0100
Subject: [PATCH] build: avoid build failure with --enable-gcc-warnings
* src/dfa.c: Don't include <assert.h>, now that it is not used.
[DEBUG]: Remove #ifdef block.
---
src/dfa.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/dfa.c b/src/dfa.c
index 120df76..6c7494e 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -21,7 +21,6 @@
Modified July, 1988 by Arthur David Olson to assist BMG speedups */
#include <config.h>
-#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <sys/types.h>
@@ -30,11 +29,6 @@
#include <string.h>
#include <locale.h>
-#ifndef DEBUG /* use the same approach as regex.c */
-#undef assert
-#define assert(e)
-#endif /* DEBUG */
-
#ifndef isgraph
#define isgraph(C) (isprint(C) && !isspace(C))
#endif
--
1.7.0.2.393.gfb6b
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] build: avoid build failure with --enable-gcc-warnings,
Jim Meyering <=