From a27a2422167b9764d4070090c9b26fdd252d364d Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 7 Aug 2010 09:35:23 +0000 Subject: [PATCH] use -Wno-unused-parameter, and add missing $(EXEEXT) to Makefile.am --- ChangeLog | 7 +++++++ configure.in | 4 ++-- src/Makefile.am | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b1a9890cf..f3114db71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-08-07 Robert Larice + * configure.in : + for gcc, don't report `unused parameter' Warnings + * src/Makefile.am + (bug tracker ID: 3019263) + add missing $(EXEEXT) for cygwin, thank you marco atzeri + 2010-08-06 Dietmar Warning * spicelib/parser/inp2q.c: add prototype for controlled_exit * frontend/com_measure2.c, inp.c, inpcom.c, vectors.c: fallback for not handled enumeration values in switch diff --git a/configure.in b/configure.in index 78aa87294..d71e66ca9 100644 --- a/configure.in +++ b/configure.in @@ -212,7 +212,7 @@ dnl the above AC_PROG_CC may set CFLAGS to "-O2 -g" if test "$enable_debug" = "no"; then if test "x$GCC" = "xyes"; then AC_MSG_WARN(Removing debugging option!) - CFLAGS="$ext_CFLAGS -O2 -Wall -s" + CFLAGS="$ext_CFLAGS -O2 -Wall -Wno-unused-parameter -s" else AC_MSG_WARN(Removing debugging option!) CFLAGS="$ext_CFLAGS -O2" @@ -220,7 +220,7 @@ if test "$enable_debug" = "no"; then else AC_DEFINE(NGDEBUG,1,[Compile with debug info]) if test "x$GCC" = "xyes"; then - CFLAGS="$ext_CFLAGS -g -O0 -Wall" + CFLAGS="$ext_CFLAGS -g -O0 -Wall -Wno-unused-parameter" else CFLAGS="$ext_CFLAGS -g" fi diff --git a/src/Makefile.am b/src/Makefile.am index c99cadae6..210e6a82c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -219,8 +219,8 @@ ngmakeidx_SOURCES = makeidx.c ## create index for online help: -ngspice.idx: ngmakeidx - ./ngmakeidx $(srcdir)/ngspice.txt +ngspice.idx: ngmakeidx$(EXEEXT) + ./ngmakeidx$(EXEEXT) $(srcdir)/ngspice.txt endif !WINDOWS