-
Notifications
You must be signed in to change notification settings - Fork 559
Compiler warnings clean-up #249
Copy link
Copy link
Closed
Labels
build and testdo-not-stalegood first issueGood for newcomersGood for newcomershelp wantedGood for taking. Extra help will be provided by maintainersGood for taking. Extra help will be provided by maintainerspriority:p2Issues that are not blockingIssues that are not blocking
Metadata
Metadata
Assignees
Labels
build and testdo-not-stalegood first issueGood for newcomersGood for newcomershelp wantedGood for taking. Extra help will be provided by maintainersGood for taking. Extra help will be provided by maintainerspriority:p2Issues that are not blockingIssues that are not blocking
Repo has 26 compiler warnings with vs2019 in:
Most of these are about potentially unsafe truncating type casts:
'initializing': conversion from 'float' to 'int', possible loss of data'=': conversion from 'double' to 'int', possible loss of data'=': conversion from 'size_t' to 'int', possible loss of data'initializing': conversion from 'size_t' to 'int', possible loss of data'return': conversion from 'double' to 'T', possible loss of dataRecommendation is to fix those warnings. And change our build flags to All or Level 4 :
Plus treat all warnings as errors by default across all compilers, to keep it at zero warnings at all times. It is gonna be progressively harder to clean it later if we don't keep it at zero from the very beginning.