[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Thu Jun 12 07:20:28 PDT 2014


 sw/source/core/crsr/crossrefbookmark.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 7e88182f673900f214b855f1c9563e63ba43eaca
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jun 12 16:20:01 2014 +0200

    Avoid "must return a value" warnings
    
    Change-Id: I2b8ac2204ec4f47dcce033da18e31b8bb5285552

diff --git a/sw/source/core/crsr/crossrefbookmark.cxx b/sw/source/core/crsr/crossrefbookmark.cxx
index 6154e1c..89c5471 100644
--- a/sw/source/core/crsr/crossrefbookmark.cxx
+++ b/sw/source/core/crsr/crossrefbookmark.cxx
@@ -17,6 +17,10 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
+#include <sal/config.h>
+
+#include <cstdlib>
+
 #include <IDocumentMarkAccess.hxx>
 #include <crossrefbookmark.hxx>
 #include <ndtxt.hxx>
@@ -59,7 +63,7 @@ namespace sw { namespace mark
         OSL_PRECOND(false,
             "<sw::mark::CrossRefBookmark::GetOtherMarkPos(..)>"
             " - this should never be called!");
-        abort();
+        for (;;) { std::abort(); } // avoid "must return a value" warnings
     }
 
     CrossRefHeadingBookmark::CrossRefHeadingBookmark(const SwPaM& rPaM,


More information about the Libreoffice-commits mailing list