From 40136bff9950f50c35bcceff9998905485e17e74 Mon Sep 17 00:00:00 2001 From: Philipp Reh Date: Fri, 20 Feb 2009 18:56:34 +0100 Subject: [PATCH] Added more warnings and removed an unused class. --- Makefile | 2 +- jmdict.cpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index af89248..8cc509f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ PREFIX ?= /usr -OPTS=-Wall -Wextra -ansi -pedantic-errors -Wconversion $(CXXFLAGS) +OPTS=-Wall -Wextra -ansi -pedantic-errors -Wconversion -Wfloat-equal -Wredundant-decls -Wstrict-null-sentinel -Winit-self -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wsign-promo $(CXXFLAGS) DICTIONARY_PATH=$(PREFIX)/share/jmdict DICTIONARY_NAME="\"$(DICTIONARY_PATH)/database\"" BINDIR=${DESTDIR}${PREFIX}/bin diff --git a/jmdict.cpp b/jmdict.cpp index 2d76110..5d68183 100644 --- a/jmdict.cpp +++ b/jmdict.cpp @@ -51,10 +51,6 @@ namespace options { bool beginning = false; bool ci_search = false; - class invalid_option : public std::runtime_error { - invalid_option(const string& s) : std::runtime_error(s) {} - }; - void getFrom(int argc, char** argv) { int opt; while ((opt = getopt(argc, argv, "bfijJl:")) != -1) -- 2.30.2