Skip to content

Commit

Permalink
Do not allow implicit float conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSchneid3r committed Dec 6, 2024
1 parent 46d8f5a commit a5224c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ set(ALBERT_COMPILE_OPTIONS
-Wpedantic

# warnings that should be errors
-Werror=return-type
-Werror=return-type # silently buils but crashes at runtime
-Werror=float-conversion # Implicit cast may loose precision (e.g. match scores)

# -Wconversion
# -Weffc++
Expand Down

0 comments on commit a5224c3

Please sign in to comment.