From f8be1f0b025459a629e9fedd09011d8cc65a4a3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Sun, 3 May 2015 13:07:33 +0200 Subject: [PATCH] Small fixes detected after changing to clang++ compiler. --- docs/Makefile.am | 4 ++-- tests/Makefile.am | 2 +- tests/option/handles_float_value.cpp | 2 +- tests/option/handles_string_value.cpp | 2 +- tests/parameter/TestParameter.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/Makefile.am b/docs/Makefile.am index b617693..63e120a 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -2,8 +2,8 @@ if HAVE_DOXYGEN directory = $(top_srcdir)/docs/man/man3 -dist_man_MANS = $(directory)/*.3 -$(directory)/*.3: doxyfile.stamp +# dist_man_MANS = $(directory)/*.3 +# $(directory)/*.3: doxyfile.stamp #$(directory)/man_page_2.3: doxyfile.stamp doxyfile.stamp: diff --git a/tests/Makefile.am b/tests/Makefile.am index 224aa6a..0a9a631 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -17,7 +17,7 @@ TESTS = \ noinst_PROGRAMS = $(TESTS) -AM_CXXFLAGS = -O3 -I$(top_srcdir)/include -std=c++11 +AM_CXXFLAGS = -I$(top_srcdir)/include -std=c++11 descriptive_holds_data_test_SOURCES = descriptive/holds_data.cpp diff --git a/tests/option/handles_float_value.cpp b/tests/option/handles_float_value.cpp index e1599f6..6bbc5ed 100644 --- a/tests/option/handles_float_value.cpp +++ b/tests/option/handles_float_value.cpp @@ -9,7 +9,7 @@ using namespace command; #define NAME "test" #define VALUE "567890.1234" -#define OPTION NAME"="VALUE +#define OPTION NAME "=" VALUE typedef float OptionType; diff --git a/tests/option/handles_string_value.cpp b/tests/option/handles_string_value.cpp index 4b276ec..7f9099d 100644 --- a/tests/option/handles_string_value.cpp +++ b/tests/option/handles_string_value.cpp @@ -9,7 +9,7 @@ using namespace command; #define NAME "test" #define VALUE "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" -#define OPTION NAME"="VALUE +#define OPTION NAME "=" VALUE typedef std::string OptionType; diff --git a/tests/parameter/TestParameter.h b/tests/parameter/TestParameter.h index 592c653..9e2874d 100644 --- a/tests/parameter/TestParameter.h +++ b/tests/parameter/TestParameter.h @@ -6,5 +6,5 @@ public: TestParameter(const std::string & description) : Parameter(description) { } virtual void handle() { } - virtual bool understand(const std::string & argVal) { } + virtual bool understand(const std::string & ) { return false; } }; \ No newline at end of file -- 2.30.2