[Libreoffice-commits] libmspub.git: src/lib

David Tardon dtardon at redhat.com
Fri Jul 26 03:51:22 PDT 2013


 src/lib/MSPUBCollector.cpp |    4 ----
 src/lib/PolygonUtils.cpp   |    5 -----
 src/lib/TableInfo.h        |    3 ---
 3 files changed, 12 deletions(-)

New commits:
commit 938e918d3a02dd2b1f741ca65c70c61e9e8bf7bb
Author: David Tardon <dtardon at redhat.com>
Date:   Fri Jul 26 12:49:11 2013 +0200

    drop pragmas disabling warnings
    
    If there is (still) a problem, I would rather fix it than hide it.

diff --git a/src/lib/MSPUBCollector.cpp b/src/lib/MSPUBCollector.cpp
index 6cad408..8836376 100644
--- a/src/lib/MSPUBCollector.cpp
+++ b/src/lib/MSPUBCollector.cpp
@@ -39,10 +39,6 @@
 #include "PolygonUtils.h"
 #include "Coordinate.h"
 
-#pragma GCC diagnostic ignored "-Wpragmas"
-#pragma GCC diagnostic ignored "-Wuninitialized"
-#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
-
 WPXBinaryData &libmspub::MSPUBCollector::addEOTFont(const WPXString &name)
 {
   m_embeddedFonts.push_back(EmbeddedFontInfo(name));
diff --git a/src/lib/PolygonUtils.cpp b/src/lib/PolygonUtils.cpp
index 29baf5a..bd79064 100644
--- a/src/lib/PolygonUtils.cpp
+++ b/src/lib/PolygonUtils.cpp
@@ -42,11 +42,6 @@
 #define M_PI 3.14159265358979323846
 #endif
 
-// FIXME: Do something better than the following workaround
-#pragma GCC diagnostic ignored "-Wpragmas"
-#pragma GCC diagnostic ignored "-Wuninitialized"
-#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
-
 using namespace libmspub;
 
 const Vertex LINE_VERTICES[] =
diff --git a/src/lib/TableInfo.h b/src/lib/TableInfo.h
index 2dc1d16..2a1c65f 100644
--- a/src/lib/TableInfo.h
+++ b/src/lib/TableInfo.h
@@ -28,9 +28,6 @@
 
 #ifndef __TABLEINFO_H__
 #define __TABLEINFO_H__
-#pragma GCC diagnostic ignored "-Wpragmas"
-#pragma GCC diagnostic ignored "-Wuninitialized"
-#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
 
 namespace libmspub
 {


More information about the Libreoffice-commits mailing list