Commit 36740e55 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

REFAC: Moved otbUseInDebug() and otbUseInRelease() in otbMacro.h

parent e459cb31
......@@ -225,4 +225,15 @@ namespace otb
# define otbUnusedMacro(x) do { (void)sizeof(x); } while(0)
//
// Unused variable warnings in Debug/Release management.
// see http://stackoverflow.com/questions/2290509/debug-vs-ndebug#2290616
#ifdef NDEBUG
# define otbUseInDebug( name )
# define otbUseInRelease( name ) name
#else // NDEBUG
# define otbUseInDebug( name ) name
# define otbUseInRelease( name )
#endif // NDEBUG
#endif //end of otbMacro.h
......@@ -18,12 +18,3 @@
#cmakedefine OTB_SHOW_ALL_MSG_DEBUG
#cmakedefine OTB_USE_GDAL_20
// see http://stackoverflow.com/questions/2290509/debug-vs-ndebug#2290616
#ifdef NDEBUG
# define otbUseInDebug( name )
# define otbUseInRelease( name ) name
#else // NDEBUG
# define otbUseInDebug( name ) name
# define otbUseInRelease( name )
#endif // NDEBUG
......@@ -44,6 +44,7 @@
//
// OTB includes (sorted by alphabetic order)
#ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829 //tag=QT4-boost-compatibility
#include "otbMacro.h"
#include "otbQtFileSelectionWidget.h"
#include "otbWrapperQtWidgetInputFilenameParameter.h"
#include "otbWrapperQtWidgetInputFilenameListParameter.h"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment