From: Rafał Długołęcki Date: Sun, 3 May 2015 11:07:33 +0000 (+0200) Subject: Small fixes detected after changing to clang++ compiler. X-Git-Tag: v0.2~21 X-Git-Url: https://git.dlugolecki.net.pl/?p=command.git;a=commitdiff_plain;h=f8be1f0b025459a629e9fedd09011d8cc65a4a3c Small fixes detected after changing to clang++ compiler. --- 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