[glibmm/glibmm-2-46] Glib::ustring fix gcc 6 warning in public header



commit 826da3107bff812904d860ca63b9d8dc47033703
Author: Aurelien Jacobs <aurel gnuage org>
Date:   Mon Jan 18 14:39:12 2016 +0100

    Glib::ustring fix gcc 6 warning in public header
    
    Avoid a warning when compiling with gcc 6 with -Wmisleading-indentation.
    Bug #760641.

 glib/glibmm/ustring.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/glib/glibmm/ustring.h b/glib/glibmm/ustring.h
index fa3411b..34505bb 100644
--- a/glib/glibmm/ustring.h
+++ b/glib/glibmm/ustring.h
@@ -990,7 +990,8 @@ const ustring_Iterator<T> ustring_Iterator<T>::operator++(int)
 template <class T> inline
 ustring_Iterator<T>& ustring_Iterator<T>::operator--()
 {
-  do --pos_; while((static_cast<unsigned char>(*pos_) & 0xC0u) == 0x80);
+  while ((static_cast<unsigned char>(*--pos_) & 0xC0u) == 0x80)
+    ;
   return *this;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]