Skip to content

Commit

Permalink
Reduce clang warnings (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl authored Oct 20, 2024
1 parent 8b46050 commit df42a89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ set(CMAKE_DEBUG_POSTFIX "-dbg")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wno-unused-function")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-function")

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-vla-cxx-extension")
endif()

if(BUILD_PYTHON_MODULE)
# Build PIC code to be used for swig/python module
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
Expand Down
2 changes: 1 addition & 1 deletion include/parpeamici/amiciSimulationRunner.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

namespace parpe {

class JobData;
struct JobData;
#ifdef PARPE_ENABLE_MPI
class LoadBalancerMaster;
#else
Expand Down

0 comments on commit df42a89

Please sign in to comment.