From 19deb7051a52b07c9bea5271f0d7c3ba7df313ad Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Wed, 4 Nov 2020 00:17:17 -0500 Subject: [PATCH] Fix C++17 form of static_assert added by a238209f3 (why does GCC allow it?) --- pcbnew/dialogs/dialog_select_net_from_list.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/dialogs/dialog_select_net_from_list.cpp b/pcbnew/dialogs/dialog_select_net_from_list.cpp index f91a531c29..c3528004f9 100644 --- a/pcbnew/dialogs/dialog_select_net_from_list.cpp +++ b/pcbnew/dialogs/dialog_select_net_from_list.cpp @@ -182,7 +182,7 @@ public: if( m_parent ) \ m_parent->set( m_parent->get() - mvar + aValue ); \ \ - static_assert( chg_bit < decltype( m_column_changed )().size() ); \ + static_assert( chg_bit < decltype( m_column_changed )().size(), "" ); \ m_column_changed[chg_bit] = m_column_changed[chg_bit] | ( mvar != aValue ); \ mvar = aValue; \ } \ @@ -192,7 +192,7 @@ public: if( m_parent ) \ m_parent->add( aValue ); \ \ - static_assert( chg_bit < decltype( m_column_changed )().size() ); \ + static_assert( chg_bit < decltype( m_column_changed )().size(), "" ); \ m_column_changed[chg_bit] = m_column_changed[chg_bit] | ( aValue != 0 ); \ mvar += aValue; \ } \ @@ -202,7 +202,7 @@ public: if( m_parent ) \ m_parent->sub( aValue ); \ \ - static_assert( chg_bit < decltype( m_column_changed )().size() ); \ + static_assert( chg_bit < decltype( m_column_changed )().size(), "" ); \ m_column_changed[chg_bit] = m_column_changed[chg_bit] | ( aValue != 0 ); \ mvar -= aValue; \ }