From 74b629fa19ae88aa3e5fe3ff6a4e1bad5742af25 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 11 Jan 2016 10:13:13 +0100 Subject: [PATCH] Fix issues I created in rev 6442 (no issue on msys2/gcc5.3, but issues on Kubuntu 14.04/ gcc 4.8). I'll find a better fix later. --- CMakeLists.txt | 2 +- pcbnew/class_board.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 136e62b844..f655f37d06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -460,7 +460,7 @@ find_package( Cairo 1.8.8 REQUIRED ) # # Note: Prior to Boost 1.59, the Boost context library is not built when compiling on windows # with GCC. You must patch the Boost sources. -find_package( Boost 1.54.0 REQUIRED COMPONENTS context coroutine system thread ) +find_package( Boost 1.54.0 REQUIRED COMPONENTS context system thread ) # Include MinGW resource compiler. include( MinGWResourceCompiler ) diff --git a/pcbnew/class_board.h b/pcbnew/class_board.h index 8aaa0f5fb7..bd9a78dab4 100644 --- a/pcbnew/class_board.h +++ b/pcbnew/class_board.h @@ -1216,10 +1216,10 @@ public: * of the via. *

* @param aPosition The wxPoint to HitTest() against. - * @param aLayer The layer to search. Use -1 for a don't care. + * @param aLayer The layer to search. Use -1 (LAYER_ID::UNDEFINED_LAYER) for a don't care. * @return VIA* A point a to the VIA object if found, else NULL. */ - VIA* GetViaByPosition( const wxPoint& aPosition, LAYER_ID aLayer = LAYER_ID::UNDEFINED_LAYER ) const; + VIA* GetViaByPosition( const wxPoint& aPosition, LAYER_ID aLayer = LAYER_ID( -1 ) ) const; /** * Function GetPad