From 93b65bf20dbcbef8efca909bccb3cde92c4fef8f Mon Sep 17 00:00:00 2001
From: Brad Barber <bradb@shore.net>
Date: Tue, 8 Mar 2011 22:23:37 -0500
Subject: [PATCH] Cleaned up warnings for gcc build Needed to disallow
 --conversion and --shadow due to Qt warnings

---
 src/libqhullcpp/Coordinates.h           |  2 +-
 src/libqhullcpp/PointCoordinates.h      |  4 ++--
 src/libqhullcpp/Qhull.cpp               |  2 +-
 src/libqhullcpp/QhullFacet.h            |  2 +-
 src/libqhullcpp/QhullFacetSet.cpp       |  2 +-
 src/libqhullcpp/QhullFacetSet.h         |  8 ++++----
 src/libqhullcpp/QhullHyperplane.cpp     |  6 +++---
 src/libqhullcpp/QhullHyperplane.h       | 14 +++++++-------
 src/libqhullcpp/QhullIterator.h         |  2 +-
 src/libqhullcpp/QhullPoint.h            |  2 +-
 src/libqhullcpp/QhullPointSet.cpp       |  8 ++++----
 src/libqhullcpp/QhullPointSet.h         | 12 ++++++------
 src/libqhullcpp/QhullPoints.h           | 14 +++++++-------
 src/libqhullcpp/QhullQh.h               |  2 +-
 src/libqhullcpp/QhullRidge.h            |  2 +-
 src/libqhullcpp/QhullSet.h              |  2 +-
 src/libqhullcpp/QhullStat.h             |  2 +-
 src/libqhullcpp/QhullVertex.h           |  2 +-
 src/libqhullcpp/QhullVertexSet.cpp      |  6 +++---
 src/libqhullcpp/QhullVertexSet.h        |  8 ++++----
 src/libqhullcpp/RboxPoints.h            |  2 +-
 src/libqhullcpp/UsingLibQhull.h         |  2 +-
 src/libqhullcpp/libqhullcpp.pro         | 12 ++++++------
 src/qhull-app-cpp.pri                   | 10 ++++++----
 src/qhulltest/PointCoordinates_test.cpp |  6 +++---
 src/qhulltest/QhullFacet_test.cpp       | 10 +++++-----
 src/qhulltest/QhullHyperplane_test.cpp  |  4 ++--
 src/qhulltest/QhullPointSet_test.cpp    |  6 +++---
 src/qhulltest/QhullPoints_test.cpp      |  6 +++---
 src/qhulltest/QhullVertex_test.cpp      |  6 +++---
 src/qhulltest/qhulltest.pro             |  2 +-
 31 files changed, 85 insertions(+), 83 deletions(-)

diff --git a/src/libqhullcpp/Coordinates.h b/src/libqhullcpp/Coordinates.h
index 61fa88d..af67231 100644
--- a/src/libqhullcpp/Coordinates.h
+++ b/src/libqhullcpp/Coordinates.h
@@ -13,7 +13,7 @@
 #include "QhullIterator.h"
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 
 #include <cstddef> // ptrdiff_t, size_t
diff --git a/src/libqhullcpp/PointCoordinates.h b/src/libqhullcpp/PointCoordinates.h
index 44d9c6d..b8b6847 100644
--- a/src/libqhullcpp/PointCoordinates.h
+++ b/src/libqhullcpp/PointCoordinates.h
@@ -13,7 +13,7 @@
 #include "Coordinates.h"
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <ostream>
 #include <vector>
@@ -51,7 +51,7 @@ public:
     std::vector<coordT> toStdVector() const { return point_coordinates.toStdVector(); }
 #endif //QHULL_NO_STL
 #ifdef QHULL_USES_QT
-    void                append(const QList<coordT> &coordinates) { if(!coordinates.isEmpty()){ append(coordinates.count(), &coordinates[0]); } }
+    void                append(const QList<coordT> &pointCoordinates) { if(!pointCoordinates.isEmpty()){ append(pointCoordinates.count(), &pointCoordinates[0]); } }
     QList<coordT>       toQList() const { return point_coordinates.toQList(); }
 #endif //QHULL_USES_QT
 
diff --git a/src/libqhullcpp/Qhull.cpp b/src/libqhullcpp/Qhull.cpp
index 84cc7fe..abddd41 100644
--- a/src/libqhullcpp/Qhull.cpp
+++ b/src/libqhullcpp/Qhull.cpp
@@ -18,7 +18,7 @@
 #include "Qhull.h"
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <iostream>
 
diff --git a/src/libqhullcpp/QhullFacet.h b/src/libqhullcpp/QhullFacet.h
index eecb5cc..d6652e6 100644
--- a/src/libqhullcpp/QhullFacet.h
+++ b/src/libqhullcpp/QhullFacet.h
@@ -16,7 +16,7 @@
 #include "QhullPointSet.h"
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <string>
 #include <vector>
diff --git a/src/libqhullcpp/QhullFacetSet.cpp b/src/libqhullcpp/QhullFacetSet.cpp
index 170ace6..855b1cd 100644
--- a/src/libqhullcpp/QhullFacetSet.cpp
+++ b/src/libqhullcpp/QhullFacetSet.cpp
@@ -128,7 +128,7 @@ operator<<(ostream &os, const QhullFacetSet::PrintFacetSet &pr)
 ostream &
 operator<<(ostream &os, const QhullFacetSet::PrintIdentifiers &p)
 {
-    os << p.message;
+    os << p.print_message;
     for(QhullFacetSet::const_iterator i=p.facet_set->begin(); i!=p.facet_set->end(); ++i){
         const QhullFacet f= *i;
         if(f.getFacetT()==qh_MERGEridge){
diff --git a/src/libqhullcpp/QhullFacetSet.h b/src/libqhullcpp/QhullFacetSet.h
index 27e2500..d3ce34d 100644
--- a/src/libqhullcpp/QhullFacetSet.h
+++ b/src/libqhullcpp/QhullFacetSet.h
@@ -68,16 +68,16 @@ public:
 
     struct PrintFacetSet{
         const QhullFacetSet *facet_set;
-        const char     *message;
+        const char     *print_message;
         int             run_id;
-                        PrintFacetSet(int qhRunId, const char *message, const QhullFacetSet *s) : facet_set(s), message(message), run_id(qhRunId) {}
+                        PrintFacetSet(int qhRunId, const char *message, const QhullFacetSet *s) : facet_set(s), print_message(message), run_id(qhRunId) {}
     };//PrintFacetSet
     const PrintFacetSet       print(int qhRunId, const char *message) const { return PrintFacetSet(qhRunId, message, this); }
 
     struct PrintIdentifiers{
         const QhullFacetSet *facet_set;
-        const char     *message;
-                        PrintIdentifiers(const char *message, const QhullFacetSet *s) : facet_set(s), message(message) {}
+        const char     *print_message;
+                        PrintIdentifiers(const char *message, const QhullFacetSet *s) : facet_set(s), print_message(message) {}
     };//PrintIdentifiers
     PrintIdentifiers    printIdentifiers(const char *message) const { return PrintIdentifiers(message, this); }
 
diff --git a/src/libqhullcpp/QhullHyperplane.cpp b/src/libqhullcpp/QhullHyperplane.cpp
index 676c80e..5b0c367 100644
--- a/src/libqhullcpp/QhullHyperplane.cpp
+++ b/src/libqhullcpp/QhullHyperplane.cpp
@@ -143,13 +143,13 @@ ostream &
 operator<<(ostream &os, const QhullHyperplane::PrintHyperplane &pr)
 {
     QhullHyperplane p= *pr.hyperplane;
-    if(pr.hyperplane_message){
-        os << pr.hyperplane_message;
+    if(pr.print_message){
+        os << pr.print_message;
     }
     const realT *c= p.coordinates();
     for(int k=p.dimension(); k--; ){
         realT r= *c++;
-        if(pr.hyperplane_message){
+        if(pr.print_message){
             os << " " << r; // FIXUP QH11010 %8.4g
         }else{
             os << " " << r; // FIXUP QH11010 qh_REAL_1
diff --git a/src/libqhullcpp/QhullHyperplane.h b/src/libqhullcpp/QhullHyperplane.h
index 61b50ed..ffad4d7 100644
--- a/src/libqhullcpp/QhullHyperplane.h
+++ b/src/libqhullcpp/QhullHyperplane.h
@@ -14,7 +14,7 @@
 #include "UsingLibQhull.h"
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <ostream>
 
@@ -45,7 +45,7 @@ public:
 
 #//Construct
                         QhullHyperplane() : hyperplane_coordinates(0), hyperplane_dimension(0), hyperplane_offset(0.0) {};
-                        QhullHyperplane(int dimension, coordT *c, coordT offset) : hyperplane_coordinates(c), hyperplane_dimension(dimension), hyperplane_offset(offset) {}
+                        QhullHyperplane(int hyperplaneDimension, coordT *c, coordT hyperplaneOffset) : hyperplane_coordinates(c), hyperplane_dimension(hyperplaneDimension), hyperplane_offset(hyperplaneOffset) {}
                         // Creates an alias.  Does not copy the hyperplane's coordinates.  Needed for return by value and parameter passing.
                         QhullHyperplane(const QhullHyperplane &other)  : hyperplane_coordinates(other.hyperplane_coordinates), hyperplane_dimension(other.hyperplane_dimension), hyperplane_offset(other.hyperplane_offset) {}
                         // Creates an alias.  Does not copy the hyperplane's coordinates.  Needed for vector<QhullHyperplane>
@@ -70,12 +70,12 @@ public:
     coordT              offset() const { return hyperplane_offset; }
 
 #//Define
-    void                defineAs(int dimension, coordT *c, coordT offset) { QHULL_ASSERT(dimension>=0); hyperplane_coordinates= c; hyperplane_dimension= dimension; hyperplane_offset= offset; }
+    void                defineAs(int hyperplaneDimension, coordT *c, coordT hyperplaneOffset) { QHULL_ASSERT(hyperplaneDimension>=0); hyperplane_coordinates= c; hyperplane_dimension= hyperplaneDimension; hyperplane_offset= hyperplaneOffset; }
     //! Creates an alias to other
     void                defineAs(QhullHyperplane &other) { hyperplane_coordinates= other.coordinates(); hyperplane_dimension= other.dimension();  hyperplane_offset= other.offset(); }
     void                setCoordinates(coordT *c) { hyperplane_coordinates= c; }
-    void                setDimension(int dimension) { hyperplane_dimension= dimension; }
-    void                setOffset(coordT c) { hyperplane_offset= c; }
+    void                setDimension(int hyperplaneDimension) { hyperplane_dimension= hyperplaneDimension; }
+    void                setOffset(coordT hyperplaneOffset) { hyperplane_offset= hyperplaneOffset; }
 
 #//value
     double              distance(const QhullPoint &p) const;
@@ -100,9 +100,9 @@ public:
 #//IO
     struct PrintHyperplane{
         const QhullHyperplane  *hyperplane;  
-        const char     *hyperplane_message;
+        const char     *print_message;
         const char     *hyperplane_offset_message;
-                        PrintHyperplane(const char *message, const char *offsetMessage, const QhullHyperplane &p) : hyperplane(&p), hyperplane_message(message), hyperplane_offset_message(offsetMessage) {}
+                        PrintHyperplane(const char *message, const char *offsetMessage, const QhullHyperplane &p) : hyperplane(&p), print_message(message), hyperplane_offset_message(offsetMessage) {}
     };//PrintHyperplane
     PrintHyperplane          print() const { return  PrintHyperplane(0, 0, *this); }
     PrintHyperplane          print(const char *message, const char *offsetMessage) const { return PrintHyperplane(message, offsetMessage, *this); }
diff --git a/src/libqhullcpp/QhullIterator.h b/src/libqhullcpp/QhullIterator.h
index 959df18..67f29fa 100644
--- a/src/libqhullcpp/QhullIterator.h
+++ b/src/libqhullcpp/QhullIterator.h
@@ -11,7 +11,7 @@
 
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <assert.h>
 #include <string>
diff --git a/src/libqhullcpp/QhullPoint.h b/src/libqhullcpp/QhullPoint.h
index 5122044..1abaa05 100644
--- a/src/libqhullcpp/QhullPoint.h
+++ b/src/libqhullcpp/QhullPoint.h
@@ -15,7 +15,7 @@
 #include "Coordinates.h"
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <ostream>
 
diff --git a/src/libqhullcpp/QhullPointSet.cpp b/src/libqhullcpp/QhullPointSet.cpp
index ecc47f8..13af7e2 100644
--- a/src/libqhullcpp/QhullPointSet.cpp
+++ b/src/libqhullcpp/QhullPointSet.cpp
@@ -185,8 +185,8 @@ ostream &
 operator<<(ostream &os, const QhullPointSet::PrintIdentifiers &pr)
 {
     const QhullPointSet s= *pr.point_set;
-    if (pr.message) {
-        os << pr.message;
+    if (pr.print_message) {
+        os << pr.print_message;
     }
     for(QhullPointSet::const_iterator i=s.begin(); i != s.end(); ++i){
         if(i!=s.begin()){
@@ -204,8 +204,8 @@ ostream &
 operator<<(ostream &os, const QhullPointSet::PrintPointSet &pr)
 {
     const QhullPointSet s= *pr.point_set;
-    if (pr.message) {
-        os << pr.message;
+    if (pr.print_message) {
+        os << pr.print_message;
     }
     for(QhullPointSet::const_iterator i=s.begin(); i != s.end(); ++i){
         const QhullPoint point= *i;
diff --git a/src/libqhullcpp/QhullPointSet.h b/src/libqhullcpp/QhullPointSet.h
index 0feb8a4..274bff2 100644
--- a/src/libqhullcpp/QhullPointSet.h
+++ b/src/libqhullcpp/QhullPointSet.h
@@ -13,7 +13,7 @@
 #include "QhullPoint.h"
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <ostream>
 
@@ -52,7 +52,7 @@ public:
 
 #//Construct
                         //Conversion from setT* is not type-safe.  Implicit conversion for void* to T
-                        QhullPointSet(int dimension, setT *s) : QhullSet<coordT *>(s), point_dimension(dimension) {}
+                        QhullPointSet(int pointDimension, setT *s) : QhullSet<coordT *>(s), point_dimension(pointDimension) {}
                         //Copy constructor copies pointer but not contents.  Needed for return by value and parameter passing.
                         QhullPointSet(const QhullPointSet &o) : QhullSet<coordT *>(o), point_dimension(o.point_dimension) {}
                        ~QhullPointSet() {}
@@ -205,17 +205,17 @@ public:
 #//IO
     struct PrintIdentifiers{
         const QhullPointSet *point_set;
-        const char     *message;
+        const char     *print_message;
         int             run_id;
-        PrintIdentifiers(const char *message, const QhullPointSet *s) : point_set(s), message(message) {}
+        PrintIdentifiers(const char *message, const QhullPointSet *s) : point_set(s), print_message(message) {}
     };//PrintIdentifiers
     PrintIdentifiers printIdentifiers(const char *message) const { return PrintIdentifiers(message, this); }
 
     struct PrintPointSet{
         const QhullPointSet *point_set;
-        const char     *message;
+        const char     *print_message;
         int             run_id;
-        PrintPointSet(int qhRunId, const char *message, const QhullPointSet &s) : point_set(&s), message(message), run_id(qhRunId) {}
+        PrintPointSet(int qhRunId, const char *message, const QhullPointSet &s) : point_set(&s), print_message(message), run_id(qhRunId) {}
     };//PrintPointSet
     PrintPointSet       print(int qhRunId) const { return PrintPointSet(qhRunId, 0, *this); }
     PrintPointSet       print(int qhRunId, const char *message) const { return PrintPointSet(qhRunId, message, *this); }
diff --git a/src/libqhullcpp/QhullPoints.h b/src/libqhullcpp/QhullPoints.h
index eeed1f5..790e284 100644
--- a/src/libqhullcpp/QhullPoints.h
+++ b/src/libqhullcpp/QhullPoints.h
@@ -12,7 +12,7 @@
 #include "QhullPoint.h"
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <ostream>
 
@@ -71,18 +71,18 @@ public:
     coordT             *coordinates() const { return point_first; }
     int                 coordinateCount() const { return (int)(point_end-point_first); } // WARN64
     int                 count() const { return (int)size(); } // WARN64
-    void                defineAs(int dimension, int coordinateCount, coordT *c) { QHULL_ASSERT(dimension>=0 && coordinateCount>=0 && c!=0); point_first= c; point_end= c+coordinateCount; point_dimension= dimension; }
-    void                defineAs(int coordinateCount, coordT *c) { QHULL_ASSERT((coordinateCount>=0 && c!=0) || (c==0 && coordinateCount==0)); point_first= c; point_end= c+coordinateCount; }
+    void                defineAs(int pointDimension, int coordinatesCount, coordT *c) { QHULL_ASSERT(pointDimension>=0 && coordinatesCount>=0 && c!=0); point_first= c; point_end= c+coordinatesCount; point_dimension= pointDimension; }
+    void                defineAs(int coordinatesCount, coordT *c) { QHULL_ASSERT((coordinatesCount>=0 && c!=0) || (c==0 && coordinatesCount==0)); point_first= c; point_end= c+coordinatesCount; }
     void                defineAs(const QhullPoints &other) { point_first= other.point_first; point_end= other.point_end; point_dimension= other.point_dimension; }
     int                 dimension() const { return point_dimension; }
     bool                empty() const { return point_end==point_first; }
     coordT             *extraCoordinates() const { return extraCoordinatesCount() ? (point_end-extraCoordinatesCount()) : 0; }
     int                 extraCoordinatesCount() const { return point_dimension>0 ? (int)((point_end-point_first)%(size_t)point_dimension) : 0; }  // WARN64
-    bool                includesCoordinates(const coordT *coordinates) const { return coordinates>=point_first && coordinates<point_end; }
+    bool                includesCoordinates(const coordT *c) const { return c>=point_first && c<point_end; }
     bool                isEmpty() const { return empty(); }
     bool                operator==(const QhullPoints &other) const;
     bool                operator!=(const QhullPoints &other) const { return !operator==(other); }
-    void                setDimension(int dimension) { QHULL_ASSERT(dimension>=0); point_dimension= dimension; }
+    void                setDimension(int pointDimension) { QHULL_ASSERT(pointDimension>=0); point_dimension= pointDimension; }
     size_t              size() const { return (point_dimension ? (point_end-point_first)/point_dimension : 0); }
 
 #//ElementAccess -- can not return references to QhullPoint
@@ -129,7 +129,7 @@ public:
                         iterator() : QhullPoint() {}
                         iterator(const iterator &other): QhullPoint(*other) {}
         explicit        iterator(const QhullPoints &ps) : QhullPoint(ps.dimension(), ps.coordinates()) {}
-        explicit        iterator(int dimension, coordT *c): QhullPoint(dimension, c) {}
+        explicit        iterator(int pointDimension, coordT *c): QhullPoint(pointDimension, c) {}
         iterator       &operator=(const iterator &other) { defineAs( const_cast<iterator &>(other)); return *this; }
         QhullPoint     *operator->() { return this; }
         // value instead of reference since advancePoint() modifies self
@@ -173,7 +173,7 @@ public:
                         const_iterator(const const_iterator &other) : QhullPoint(*other) {}
                         const_iterator(const QhullPoints::iterator &other) : QhullPoint(*other) {}
         explicit        const_iterator(const QhullPoints &ps) : QhullPoint(ps.dimension(), ps.coordinates()) {}
-        explicit        const_iterator(int dimension, coordT *c): QhullPoint(dimension, c) {}
+        explicit        const_iterator(int pointDimension, coordT *c): QhullPoint(pointDimension, c) {}
         const_iterator &operator=(const const_iterator &other) { defineAs(const_cast<const_iterator &>(other)); return *this; }
         // value/non-const since advancePoint(1), etc. modifies self
         QhullPoint      operator*() const { return *this; }
diff --git a/src/libqhullcpp/QhullQh.h b/src/libqhullcpp/QhullQh.h
index 5f8b73a..9b98b99 100644
--- a/src/libqhullcpp/QhullQh.h
+++ b/src/libqhullcpp/QhullQh.h
@@ -11,7 +11,7 @@
 
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <string>
 #include <vector>
diff --git a/src/libqhullcpp/QhullRidge.h b/src/libqhullcpp/QhullRidge.h
index 4e4f6f4..d04f9f3 100644
--- a/src/libqhullcpp/QhullRidge.h
+++ b/src/libqhullcpp/QhullRidge.h
@@ -15,7 +15,7 @@
 #include "QhullFacet.h"
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <ostream>
 
diff --git a/src/libqhullcpp/QhullSet.h b/src/libqhullcpp/QhullSet.h
index e50bb29..b6c07a8 100644
--- a/src/libqhullcpp/QhullSet.h
+++ b/src/libqhullcpp/QhullSet.h
@@ -12,7 +12,7 @@
 #include "QhullError.h"
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 
 #ifndef QHULL_NO_STL
diff --git a/src/libqhullcpp/QhullStat.h b/src/libqhullcpp/QhullStat.h
index f84631d..73ce5b1 100644
--- a/src/libqhullcpp/QhullStat.h
+++ b/src/libqhullcpp/QhullStat.h
@@ -11,7 +11,7 @@
 
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <string>
 #include <vector>
diff --git a/src/libqhullcpp/QhullVertex.h b/src/libqhullcpp/QhullVertex.h
index a860520..200d03e 100644
--- a/src/libqhullcpp/QhullVertex.h
+++ b/src/libqhullcpp/QhullVertex.h
@@ -15,7 +15,7 @@
 #include "QhullSet.h"
 extern "C" {
     #include "libqhull/qhull_a.h"
-};
+}
 
 #include <ostream>
 
diff --git a/src/libqhullcpp/QhullVertexSet.cpp b/src/libqhullcpp/QhullVertexSet.cpp
index 40044f8..027a50b 100644
--- a/src/libqhullcpp/QhullVertexSet.cpp
+++ b/src/libqhullcpp/QhullVertexSet.cpp
@@ -78,8 +78,8 @@ using orgQhull::UsingLibQhull;
 ostream &
 operator<<(ostream &os, const QhullVertexSet::PrintIdentifiers &pr)
 {
-    if(pr.message && *pr.message){
-        os << pr.message;
+    if(pr.print_message && *pr.print_message){
+        os << pr.print_message;
     }
     for(QhullVertexSet::const_iterator i=pr.Vertex_set->begin(); i!=pr.Vertex_set->end(); ++i){
         const QhullVertex v= *i;
@@ -94,7 +94,7 @@ operator<<(ostream &os, const QhullVertexSet::PrintIdentifiers &pr)
 ostream &
 operator<<(ostream &os, const QhullVertexSet::PrintVertexSet &pr){
 
-    os << pr.message;
+    os << pr.print_message;
     const QhullVertexSet *vs= pr.Vertex_set;
     QhullVertexSetIterator i= *vs;
     while(i.hasNext()){
diff --git a/src/libqhullcpp/QhullVertexSet.h b/src/libqhullcpp/QhullVertexSet.h
index 159cff1..0c7e5ba 100644
--- a/src/libqhullcpp/QhullVertexSet.h
+++ b/src/libqhullcpp/QhullVertexSet.h
@@ -53,16 +53,16 @@ public:
 #//IO
     struct PrintVertexSet{
         const QhullVertexSet *Vertex_set;
-        const char     *message;
+        const char     *print_message;
         int             run_id;
-                        PrintVertexSet(int qhRunId, const char *message, const QhullVertexSet *s) : Vertex_set(s), message(message), run_id(qhRunId) {}
+                        PrintVertexSet(int qhRunId, const char *message, const QhullVertexSet *s) : Vertex_set(s), print_message(message), run_id(qhRunId) {}
     };//PrintVertexSet
     const PrintVertexSet       print(int qhRunId, const char *message) const { return PrintVertexSet(qhRunId, message, this); }
 
     struct PrintIdentifiers{
         const QhullVertexSet *Vertex_set;
-        const char     *message;
-                        PrintIdentifiers(const char *message, const QhullVertexSet *s) : Vertex_set(s), message(message) {}
+        const char     *print_message;
+                        PrintIdentifiers(const char *message, const QhullVertexSet *s) : Vertex_set(s), print_message(message) {}
     };//PrintIdentifiers
     PrintIdentifiers    printIdentifiers(const char *message) const { return PrintIdentifiers(message, this); }
 
diff --git a/src/libqhullcpp/RboxPoints.h b/src/libqhullcpp/RboxPoints.h
index bb016ec..3d44870 100644
--- a/src/libqhullcpp/RboxPoints.h
+++ b/src/libqhullcpp/RboxPoints.h
@@ -13,7 +13,7 @@
 #include "PointCoordinates.h"
 extern "C" {
 #include "libqhull/libqhull.h"
-};
+}
 
 #include <stdarg.h>
 #include <string>
diff --git a/src/libqhullcpp/UsingLibQhull.h b/src/libqhullcpp/UsingLibQhull.h
index 52b6fc8..88b5691 100644
--- a/src/libqhullcpp/UsingLibQhull.h
+++ b/src/libqhullcpp/UsingLibQhull.h
@@ -12,7 +12,7 @@
 #include "QhullError.h"
 extern "C" {
 #include "libqhull/libqhull.h"
-};
+}
 
 namespace orgQhull {
 
diff --git a/src/libqhullcpp/libqhullcpp.pro b/src/libqhullcpp/libqhullcpp.pro
index bd6b581..6258096 100644
--- a/src/libqhullcpp/libqhullcpp.pro
+++ b/src/libqhullcpp/libqhullcpp.pro
@@ -6,7 +6,7 @@
 DESTDIR = ../../lib
 TEMPLATE = lib
 CONFIG += staticlib warn_on
-CONFIG -= qt
+CONFIG -= qt rtti
 build_pass:CONFIG(debug, debug|release):{
    TARGET = qhullcpp-d
    OBJECTS_DIR = Debug
@@ -18,12 +18,12 @@ MOC_DIR = moc
 
 DEFINES += qh_QHpointer
 INCLUDEPATH += ../../src
-INCLUDEPATH += $PWD # for MOC_DIR
-*xxg++ {
-    QMAKE_CXXFLAGS_WARN_ON += -Werror -Wcast-qual -Wextra -Wwrite-strings
+INCLUDEPATH += $$PWD # for MOC_DIR
+*g++ {
+    #QMAKE_CXXFLAGS_WARN_ON += -Wconversion # Qt conversion errors in qbitarray and qpalette
+    QMAKE_CXXFLAGS_WARN_ON += -Werror # Treat warnings as errors
+    QMAKE_CXXFLAGS_WARN_ON += -Wcast-qual -Wextra -Wwrite-strings
     QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-conversion
-    QMAKE_CXXFLAGS_WARN_ON += -Wconversion
-    QMAKE_CXXFLAGS_WARN_ON += -pedantic
 }
 
 SOURCES += ../road/RoadError.cpp
diff --git a/src/qhull-app-cpp.pri b/src/qhull-app-cpp.pri
index d22b148..281c655 100644
--- a/src/qhull-app-cpp.pri
+++ b/src/qhull-app-cpp.pri
@@ -1,6 +1,7 @@
 DESTDIR = ../../bin
 TEMPLATE = app
 CONFIG += console warn_on
+CONFIG -= rtti
 LIBS += -L../../lib
 build_pass:CONFIG(debug, debug|release){
    LIBS += -lqhullcpp-d
@@ -11,11 +12,12 @@ build_pass:CONFIG(debug, debug|release){
    LIBS += -lqhull-p  # Must be last, otherwise qh_fprintf,etc. are loaded from here instead of qhullcpp.lib
    OBJECTS_DIR = Release
 }
-*xxg++ {
-    QMAKE_CXXFLAGS_WARN_ON += -Werror -Wcast-qual -Wextra -Wshadow -Wwrite-strings
+*g++ {
+    #QMAKE_CXXFLAGS_WARN_ON += -Wshadow # Shadowing in Qt, e.g., nested foreach
+    #QMAKE_CXXFLAGS_WARN_ON += -Wconversion # Conversion errors in Qt for qbitarray and qpalette
+    QMAKE_CXXFLAGS_WARN_ON += -Werror # Treat warnings as errors
+    QMAKE_CXXFLAGS_WARN_ON += -Wcast-qual -Wextra -Wwrite-strings
     QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-conversion
-    QMAKE_CXXFLAGS_WARN_ON += -Wconversion
-    QMAKE_CXXFLAGS_WARN_ON += -pendantic
 }
 win32-msvc : QMAKE_LFLAGS += /INCREMENTAL:NO
 
diff --git a/src/qhulltest/PointCoordinates_test.cpp b/src/qhulltest/PointCoordinates_test.cpp
index be1e3c5..36ca47c 100644
--- a/src/qhulltest/PointCoordinates_test.cpp
+++ b/src/qhulltest/PointCoordinates_test.cpp
@@ -219,9 +219,9 @@ t_foreach()
     i2= pc2.end();
     QVERIFY(i2-1!=i3);
     QCOMPARE(*(i2-1), *i3);
-    foreach(QhullPoint p, pc){ //Qt only
-        QVERIFY(p[0]>=0.0);
-        QVERIFY(p[0]<=5.0);
+    foreach(QhullPoint p3, pc){ //Qt only
+        QVERIFY(p3[0]>=0.0);
+        QVERIFY(p3[0]<=5.0);
     }
     Coordinates::ConstIterator i4= pc.beginCoordinates();
     QCOMPARE(*i4, 0.0);
diff --git a/src/qhulltest/QhullFacet_test.cpp b/src/qhulltest/QhullFacet_test.cpp
index 6932af3..4e3dc82 100644
--- a/src/qhulltest/QhullFacet_test.cpp
+++ b/src/qhulltest/QhullFacet_test.cpp
@@ -136,9 +136,9 @@ t_getSet()
             cout << "OuterPlane: " << ho << "outerOffset+0.5 " << outerOffset << endl;
             QVERIFY(outerOffset <= 0.0);
             QVERIFY(outerOffset-innerOffset < 1e-7);
-            for(int i= 0; i<3; i++){
-                QVERIFY(ho[i]==hi[i]);
-                QVERIFY(ho[i]==h[i]);
+            for(int k= 0; k<3; k++){
+                QVERIFY(ho[k]==hi[k]);
+                QVERIFY(ho[k]==h[k]);
             }
             QhullPoint center= f.getCenter(q.runId());
             cout << "Center: " << center << endl;
@@ -157,8 +157,8 @@ t_getSet()
         QCOMPARE(center3.dimension(), 3);
         QhullPoint center4= f2.getCenter(q.runId());
         QCOMPARE(center4.dimension(), 3);
-        for(int i= 0; i<3; i++){
-            QVERIFY(center4[i]==center3[i]);
+        for(int k= 0; k<3; k++){
+            QVERIFY(center4[k]==center3[k]);
         }
         Qhull q3(rcube,"v Qz QR0");  // Voronoi diagram of a cube (one vertex)
 
diff --git a/src/qhulltest/QhullHyperplane_test.cpp b/src/qhulltest/QhullHyperplane_test.cpp
index c5c2b4e..a2154a0 100644
--- a/src/qhulltest/QhullHyperplane_test.cpp
+++ b/src/qhulltest/QhullHyperplane_test.cpp
@@ -124,8 +124,8 @@ t_readonly()
             const coordT *c3= h.begin();
             QCOMPARE(c, c3);
             QCOMPARE(h.offset(), -0.5);
-            int i= h.end()-h.begin();
-            QCOMPARE(i, 3);
+            int j= h.end()-h.begin();
+            QCOMPARE(j, 3);
             double squareNorm= std::inner_product(h.begin(), h.end(), h.begin(), 0.0);
             QCOMPARE(squareNorm, 1.0);
         }
diff --git a/src/qhulltest/QhullPointSet_test.cpp b/src/qhulltest/QhullPointSet_test.cpp
index 72e1786..e10ca18 100644
--- a/src/qhulltest/QhullPointSet_test.cpp
+++ b/src/qhulltest/QhullPointSet_test.cpp
@@ -131,9 +131,9 @@ t_element()
     QVERIFY(ps.value(1, p)!=p);
     QhullPointSet ps8= f.coplanarPoints();
     QhullPointSet::Iterator i= ps8.begin();
-    foreach(QhullPoint p, ps){  // Qt only
-        QCOMPARE(p.dimension(), 3);
-        QCOMPARE(p, *i++);
+    foreach(QhullPoint p9, ps){  // Qt only
+        QCOMPARE(p9.dimension(), 3);
+        QCOMPARE(p9, *i++);
     }
 }//t_element
 
diff --git a/src/qhulltest/QhullPoints_test.cpp b/src/qhulltest/QhullPoints_test.cpp
index 39cdc2f..3d5c753 100644
--- a/src/qhulltest/QhullPoints_test.cpp
+++ b/src/qhulltest/QhullPoints_test.cpp
@@ -189,9 +189,9 @@ t_element()
     QCOMPARE(ps.value(3), p8);
     QCOMPARE(ps.value(3, p), p);
     QVERIFY(ps.value(1, p)!=p);
-    foreach(QhullPoint p, ps){  // Qt only
-        QCOMPARE(p.dimension(), 2);
-        QVERIFY(p[0]==0.0 || p[0]==2.0 || p[0]==4.0);
+    foreach(QhullPoint p9, ps){  // Qt only
+        QCOMPARE(p9.dimension(), 2);
+        QVERIFY(p9[0]==0.0 || p9[0]==2.0 || p9[0]==4.0);
     }
 }//t_element
 
diff --git a/src/qhulltest/QhullVertex_test.cpp b/src/qhulltest/QhullVertex_test.cpp
index d745bef..7812f3f 100644
--- a/src/qhulltest/QhullVertex_test.cpp
+++ b/src/qhulltest/QhullVertex_test.cpp
@@ -109,9 +109,9 @@ t_getSet()
         // test point()
         foreach (QhullVertex v, q.vertexList()){  // Qt only
             QhullPoint p= v.point();
-            int i= p.id(q.runId());
-            cout << "Point " << i << ":\n" << p.print(q.runId()) << endl;
-            QVERIFY(i>=0 && i<8);
+            int j= p.id(q.runId());
+            cout << "Point " << j << ":\n" << p.print(q.runId()) << endl;
+            QVERIFY(j>=0 && j<8);
         }
     }
 }//t_getSet
diff --git a/src/qhulltest/qhulltest.pro b/src/qhulltest/qhulltest.pro
index 5b0dae9..7387e8c 100644
--- a/src/qhulltest/qhulltest.pro
+++ b/src/qhulltest/qhulltest.pro
@@ -6,7 +6,7 @@ TARGET = qhulltest
 include(../qhull-app-cpp.pri)
 CONFIG += qtestlib
 MOC_DIR = moc
-INCLUDEPATH += $PWD  # for MOC_DIR
+INCLUDEPATH += ..  # for MOC_DIR
 
 PRECOMPILED_HEADER = ../road/RoadTest.h
 
-- 
GitLab