Skip to content

Commit

Permalink
Compilation not possible due to Werror (#5361)
Browse files Browse the repository at this point in the history
* Enable optimizations in compiler for release mode
* Update to latest available armadillo version (#5364)
* Enable optimizations in compiler for release mode
  • Loading branch information
bmarchant committed Jun 14, 2022
1 parent 13cc9da commit 5fdd026
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions LocalConfig.pri.orig
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ debug {

# Runs expensive validation on several data structures to make sure everything is in sync.
#DEFINES += VALIDATE_ON

# Use this with valgrind
#QMAKE_CXXFLAGS+=-g -O1

}

release {
DEFINES -= DEBUG
QMAKE_CXXFLAGS+=-O3
}

# ccache speeds up compiling
Expand Down Expand Up @@ -49,9 +54,6 @@ QMAKE_CXXFLAGS+=-Wall
# Turn warnings into errors
QMAKE_CXXFLAGS+=-Werror

# Use this with valgrind
#QMAKE_CXXFLAGS+=-g -O1

# Temporarily turn off compiler warning for "Incompatible Function Types"
QMAKE_CXXFLAGS+=-Wno-cast-function-type

Expand Down

0 comments on commit 5fdd026

Please sign in to comment.