Kaydet (Commit) 58d8ad36 authored tarafından Luboš Luňák's avatar Luboš Luňák

fix Wundef in mdds

Change-Id: I5abf3c7c71b3d0d26194dd89067b1b0a2cea4fde
üst 92a34086
......@@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,mdds,\
mdds/mdds_0.6.0.patch \
mdds/0001-Workaround-for-gcc-bug.patch \
mdds/mdds_0.7.0_unreachable_warning.patch.1 \
mdds/wundef.patch \
))
$(eval $(call gb_UnpackedTarball_mark_output_files,mdds,\
......
--- misc/mdds_0.6.0/include/mdds/segment_tree.hpp
+++ misc/build/mdds_0.6.0/include/mdds/segment_tree.hpp
@@ -285,7 +285,7 @@ public:
}
};
-#if UNIT_TEST
+#ifdef UNIT_TEST
struct node_printer : public ::std::unary_function<const node*, void>
{
void operator() (const node* p) const
--- misc/mdds_0.6.0/include/mdds/multi_type_vector_def.inl
+++ misc/build/mdds_0.6.0/include/mdds/multi_type_vector_def.inl
@@ -29,7 +29,7 @@
#include <stdexcept>
-#if UNIT_TEST
+#ifdef UNIT_TEST
#include <iostream>
using std::cout;
using std::endl;
--- misc/mdds_0.6.0/include/mdds/mixed_type_matrix_flag_storage.hpp
+++ misc/build/mdds_0.6.0/include/mdds/mixed_type_matrix_flag_storage.hpp
@@ -25,7 +25,7 @@
*
************************************************************************/
-#if UNIT_TEST
+#ifdef UNIT_TEST
#include <iostream>
#endif
@@ -74,7 +74,7 @@ public:
// Flag is stored at this position. Remove it.
m_flags.erase(itr);
}
-#if UNIT_TEST
+#ifdef UNIT_TEST
void dump() const
{
using namespace std;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment