build: add -std=c++03 (in non C++11 mode) and -pedantic to the default CXXFLAGS
And fix the resulting warnings. The long-long-int warning is explicitly
suppressed because it's not trivial to workaround in a platform-independent
and ISO-conformant way without using C++11.
This commit also includes fix for the advisory check for C++11-enabled
compiler in common.hpp (gcc < 4.7 does not correctly define __cpluplus
macro).
Finally, when custom CXXFLAGS are specified, --with-c++11 does not force
-std=c++11 or -std=c++0x flags, but just performs mandatory checks for
std::shared_ptr and std::function.
Change-Id: Icf44627edfddd34301bd27a05882b62fcbf54329
diff --git a/src/security/conf/checker.hpp b/src/security/conf/checker.hpp
index 1ec2323..48664ea 100644
--- a/src/security/conf/checker.hpp
+++ b/src/security/conf/checker.hpp
@@ -68,7 +68,7 @@
enum
{
INTEREST_SIG_VALUE = -1,
- INTEREST_SIG_INFO = -2,
+ INTEREST_SIG_INFO = -2
};
public:
@@ -176,7 +176,7 @@
enum
{
INTEREST_SIG_VALUE = -1,
- INTEREST_SIG_INFO = -2,
+ INTEREST_SIG_INFO = -2
};
public:
FixedSignerChecker(uint32_t sigType,
diff --git a/src/security/conf/filter.hpp b/src/security/conf/filter.hpp
index 1db7498..7d5b833 100644
--- a/src/security/conf/filter.hpp
+++ b/src/security/conf/filter.hpp
@@ -42,7 +42,7 @@
{
RELATION_EQUAL,
RELATION_IS_PREFIX_OF,
- RELATION_IS_STRICT_PREFIX_OF,
+ RELATION_IS_STRICT_PREFIX_OF
};
RelationNameFilter(const Name& name, Relation relation)
diff --git a/src/security/conf/key-locator-checker.hpp b/src/security/conf/key-locator-checker.hpp
index 0f667f7..5785c59 100644
--- a/src/security/conf/key-locator-checker.hpp
+++ b/src/security/conf/key-locator-checker.hpp
@@ -28,7 +28,7 @@
{
RELATION_EQUAL,
RELATION_IS_PREFIX_OF,
- RELATION_IS_STRICT_PREFIX_OF,
+ RELATION_IS_STRICT_PREFIX_OF
};
virtual