Handle clang 10 warnings:
+ fix -Wtautological-bitwise-compare + fix -Wimplicit-int-float-conversion + fix -Wmisleading-indentation + fix -Wrange-loop-construct + suppress -Wdeprecated-copy of 3rd party libs
This commit is contained in:
@@ -29,6 +29,12 @@
|
||||
# include <iterator>
|
||||
#endif
|
||||
|
||||
#if defined(__clang__) && defined(__has_warning)
|
||||
#if __has_warning("-Wdeprecated-copy")
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-copy"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "Approximation.h"
|
||||
#include "Elements.h"
|
||||
#include "Utilities.h"
|
||||
|
||||
@@ -61,6 +61,12 @@
|
||||
# include <iterator>
|
||||
#endif
|
||||
|
||||
#if defined(__clang__) && defined(__has_warning)
|
||||
#if __has_warning("-Wdeprecated-copy")
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-copy"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "CylinderFit.h"
|
||||
#include <Base/Console.h>
|
||||
#include <Mod/Mesh/App/WildMagic4/Wm4ApprLineFit3.h>
|
||||
|
||||
@@ -28,6 +28,12 @@
|
||||
#ifndef _PreComp_
|
||||
#endif
|
||||
|
||||
#if defined(__clang__) && defined(__has_warning)
|
||||
#if __has_warning("-Wdeprecated-copy")
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-copy"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "KDTree.h"
|
||||
#include <kdtree++/kdtree.hpp>
|
||||
|
||||
|
||||
@@ -28,6 +28,12 @@
|
||||
# include <iterator>
|
||||
#endif
|
||||
|
||||
#if defined(__clang__) && defined(__has_warning)
|
||||
#if __has_warning("-Wdeprecated-copy")
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-copy"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "SphereFit.h"
|
||||
#include <Base/Console.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user