Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide all warning messages during compilation if SHOW_WARNINGS is undefined #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Src/FEMTree.System.inl
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,9 @@ T FEMTree< Dim , Real >::_getInterpolationConstraintFromProlongedSolution( const
{
int s[Dim];
#if defined( _WIN32 ) || defined( _WIN64 )
#ifdef SHOW_WARNINGS
#pragma message ( "[WARNING] You've got me MSVC" )
#endif // SHOW_WARNINGS
auto UpdateFunction = [&]( int d , int i ){ s[d] = (int)SupportSizes::Values[d] - 1 - ( i - (int)OverlapRadii::Values[d] + (int)LeftSupportRadii::Values[d] ); };
auto ProcessFunction = [&]( const FEMTreeNode* pNode )
{
Expand Down Expand Up @@ -3278,7 +3280,9 @@ double FEMTree< Dim , Real >::_dot( UIntPack< FEMSigs1 ... > , UIntPack< FEMSigs
_SetParentOverlapBounds( UIntPack< Degrees1 ... >() , UIntPack< Degrees2 ... >() , node , start , end );

#ifdef __clang__
#ifdef SHOW_WARNINGS
#pragma message ( "[WARNING] You've got me clang" )
#endif // SHOW_WARNINGS
std::function< void (int,int) > updateFunction = [](int,int){};
#endif // __clang__

Expand Down
2 changes: 2 additions & 0 deletions Src/LinearSolvers.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#ifdef USE_CHOLMOD
#include <Cholmod/cholmod.h>
#if defined( WIN32 ) || defined( _WIN64 )
#ifdef SHOW_WARNINGS
#pragma message( "[WARNING] Need to explicitly exclude VCOMP.lib" )
#endif // SHOW_WARNINGS
#pragma comment( lib , "CHOLMOD_FULL.lib" )
#endif // WIN32 || _WIN64
#ifdef DLONG
Expand Down