aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-22 20:47:02 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-22 20:47:02 +0000
commit23866c94eba510ef86b0dc45ea210549a7cbe6c1 (patch)
tree31cf89cd6c2cdca9fa8d2d61eea56be3a9869a62
parente6253d061ec48e5099fb02d458d3ef4285548ee7 (diff)
downloadpaludis-23866c94eba510ef86b0dc45ea210549a7cbe6c1.tar.gz
paludis-23866c94eba510ef86b0dc45ea210549a7cbe6c1.tar.xz
I hate GNU, GNU hates me, I'm going to butcher your family...
-rw-r--r--paludis/match_sequence.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/match_sequence.cc b/paludis/match_sequence.cc
index f6f944e..cc53ba8 100644
--- a/paludis/match_sequence.cc
+++ b/paludis/match_sequence.cc
@@ -25,7 +25,8 @@ using namespace paludis;
* never return when in fact they will. this is a nasty workaround. */
#if defined(__GNUC__)
# if __GNUC__ < 4
-# define WORK_AROUND_BROKEN_COMPILER do { std::string s; } while (false)
+# define WORK_AROUND_BROKEN_COMPILER do { std::string s; \
+ if (! s.empty()) return s.size(); } while (false)
# else
# define WORK_AROUND_BROKEN_COMPILER
# endif