Hi, i went into a small compilation problem trying to compile latest
monotone (version 5d0f74d53172095af617381a737fd951ec095f25) with
gcc-4.1 (see [1]). I manage to fix the bug, here comes the
corresponding patch.
Proposed Changelog:
* fix gcc-4.1 revealed scoping issue inside sanity.hh
Cheers,
Stéphane.
[1] http://ghostgim.online.fr/monotone-build-1138202941.log
#
# old_revision [5d0f74d53172095af617381a737fd951ec095f25]
#
# patch "sanity.hh"
# from [d2494fb0f9188882227ca0ce6584efadb48fbb8b]
# to [ef8ef5e7d48f661c3c75259b6bf206a0c8fd2249]
#
============================================================
--- sanity.hh d2494fb0f9188882227ca0ce6584efadb48fbb8b
+++ sanity.hh ef8ef5e7d48f661c3c75259b6bf206a0c8fd2249
@@ -279,6 +279,8 @@
T const & obj;
};
+void dump(std::string const & obj, std::string & out);
+
// The header line must be printed into the "out" string before
// dump() is called.
// This is so that even if the call to dump() throws an error,
@@ -314,6 +316,5 @@
#define MM(obj) /* */
#endif
-void dump(std::string const & obj, std::string & out);
#endif // __SANITY_HH__
_______________________________________________
Monotone-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-devel