Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Mar 30, 2021
1 parent 7822d44 commit 205ba51
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 34 deletions.
4 changes: 3 additions & 1 deletion Engine/AppInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#if !defined(SBK_RUN) && !defined(Q_MOC_RUN)
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <boost/algorithm/string/predicate.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
#endif
Expand Down Expand Up @@ -74,6 +74,8 @@ CLANG_DIAG_ON(unknown-pragmas)
#include "Engine/Settings.h"
#include "Engine/WriteNode.h"

using namespace boost::placeholders;

NATRON_NAMESPACE_ENTER

FlagSetter::FlagSetter(bool initialValue,
Expand Down
2 changes: 0 additions & 2 deletions Engine/Bezier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#include <QtCore/QDebug>

GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
Expand Down
2 changes: 0 additions & 2 deletions Engine/EffectInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@

#if !defined(SBK_RUN) && !defined(Q_MOC_RUN)
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/make_shared.hpp>
Expand Down
3 changes: 2 additions & 1 deletion Engine/EffectInstanceRenderRoI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#if !defined(SBK_RUN) && !defined(Q_MOC_RUN)
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
#endif

Expand Down Expand Up @@ -82,6 +82,7 @@ GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON

//#define NATRON_ALWAYS_ALLOCATE_FULL_IMAGE_BOUNDS

using namespace boost::placeholders;

NATRON_NAMESPACE_ENTER

Expand Down
2 changes: 0 additions & 2 deletions Engine/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@

#include <boost/scoped_ptr.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/algorithm/string/case_conv.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON

Expand Down
4 changes: 3 additions & 1 deletion Engine/OfxHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ CLANG_DIAG_ON(deprecated-register)
#include <QtConcurrentMap> // QtCore on Qt4, QtConcurrent on Qt5
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
#endif
CLANG_DIAG_ON(deprecated)
Expand Down Expand Up @@ -111,6 +111,8 @@ CLANG_DIAG_ON(unknown-pragmas)
#include "Engine/TLSHolder.h"
#include "Engine/ThreadPool.h"

using namespace boost::placeholders;

//An effect may not use more than this amount of threads
#define NATRON_MULTI_THREAD_SUITE_MAX_NUM_CPU 4

Expand Down
6 changes: 0 additions & 6 deletions Engine/OutputEffectInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@
#include <QtConcurrentMap> // QtCore on Qt4, QtConcurrent on Qt5
#include <QtConcurrentRun> // QtCore on Qt4, QtConcurrent on Qt5

#if !defined(SBK_RUN) && !defined(Q_MOC_RUN)
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
#endif

#include <SequenceParsing.h> // for removePath

Expand Down
2 changes: 0 additions & 2 deletions Engine/RotoContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@

#include <boost/scoped_ptr.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
Expand Down
2 changes: 0 additions & 2 deletions Engine/RotoDrawableItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#include <QtCore/QDebug>

GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
Expand Down
2 changes: 0 additions & 2 deletions Engine/RotoItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
#include <QtCore/QDebug>

GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
Expand Down
2 changes: 0 additions & 2 deletions Engine/RotoLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
#include <QtCore/QDebug>

GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
Expand Down
2 changes: 0 additions & 2 deletions Engine/RotoStrokeItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
#include <QtCore/QDebug>

GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
Expand Down
9 changes: 9 additions & 0 deletions Engine/TrackerContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
#include <set>
#include <sstream> // stringstream

#if !defined(SBK_RUN) && !defined(Q_MOC_RUN)
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind/bind.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
#endif

CLANG_DIAG_OFF(deprecated)
CLANG_DIAG_OFF(uninitialized)
#include <QtCore/QWaitCondition>
Expand All @@ -52,6 +59,8 @@ CLANG_DIAG_ON(uninitialized)
#include "Engine/TrackerSerialization.h"
#include "Engine/ViewerInstance.h"

using namespace boost::placeholders;

#define NATRON_TRACKER_REPORT_PROGRESS_DELTA_MS 200

NATRON_NAMESPACE_ENTER
Expand Down
9 changes: 9 additions & 0 deletions Engine/TrackerContextPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
#include <omp.h>
#endif

#if !defined(SBK_RUN) && !defined(Q_MOC_RUN)
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind/bind.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
#endif

#include <QtCore/QThreadPool>

#include "Engine/AppInstance.h"
Expand All @@ -45,6 +52,8 @@
#include "Engine/TrackerNode.h"
#include "Engine/TrackerContext.h"

using namespace boost::placeholders;


#ifdef DEBUG
//#define TRACKER_GENERATE_DATA_SEQUENTIALLY
Expand Down
2 changes: 0 additions & 2 deletions Engine/TrackerContextPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ GCC_DIAG_ON(maybe-uninitialized)
#include <QFutureWatcher>
#include <QtConcurrentMap>

#include <boost/bind.hpp>

#include "Engine/CreateNodeArgs.h"
#include "Engine/NodeSerialization.h"
#include "Engine/RectD.h"
Expand Down
3 changes: 2 additions & 1 deletion Engine/ViewerInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <boost/make_shared.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON

CLANG_DIAG_OFF(deprecated)
Expand Down Expand Up @@ -74,6 +74,7 @@ CLANG_DIAG_ON(deprecated)
#include "Engine/Utils.h"
#include "Engine/ViewIdx.h"

using namespace boost::placeholders;

#ifndef M_LN2
#define M_LN2 0.693147180559945309417232121458176568 /* loge(2) */
Expand Down
2 changes: 0 additions & 2 deletions Gui/CurveWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1398,8 +1398,6 @@ CurveWidget::wheelEvent(QWheelEvent* e)
return;
}

double zoomFactor;
double par;
double scaleFactor = std::pow( NATRON_WHEEL_ZOOM_PER_DELTA, e->delta() );
QPointF zoomCenter = _imp->zoomCtx.toZoomCoordinates( e->x(), e->y() );

Expand Down
4 changes: 0 additions & 4 deletions Gui/MultiInstancePanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ CLANG_DIAG_OFF(uninitialized)
CLANG_DIAG_ON(deprecated)
CLANG_DIAG_ON(uninitialized)

GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
// /usr/local/include/boost/bind/arg.hpp:37:9: warning: unused typedef 'boost_static_assert_typedef_37' [-Wunused-local-typedef]
#include <boost/bind.hpp>
GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
#include <boost/weak_ptr.hpp>

#include <ofxNatron.h>
Expand Down

0 comments on commit 205ba51

Please sign in to comment.