Skip to content

Commit

Permalink
fixing unreachable code warning under MSVC (this time I think we are …
Browse files Browse the repository at this point in the history
…good)
  • Loading branch information
BrunoLevy committed Aug 7, 2024
1 parent 01032aa commit a0bb325
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/examples/geogram/manifold_harmonics/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
#include <geogram/mesh/mesh_io.h>
#include <geogram/mesh/mesh_manifold_harmonics.h>

// if GEO_DYNAMIC_LIBS is not defined, then there is unreachable code.
#ifdef GEO_COMPILER_MSVC
#pragma warning( disable : 4702)
#endif

int main(int argc, char** argv) {
using namespace GEO;

Expand All @@ -54,9 +59,6 @@ int main(int argc, char** argv) {
try {

#ifndef GEO_DYNAMIC_LIBS
#ifdef GEO_COMPILER_MSVC
#pragma warning( disable : C4702) // of course there is unreachable code
#endif
// Manifold Harmonics depend on ARPACK, loaded dynamically by
// OpenNL, so geogram needs to be compiled with dynamic libs.
GEO::Logger::err("MH")
Expand Down

0 comments on commit a0bb325

Please sign in to comment.