Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue565 #160

Merged
merged 26 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9f9a25e
remove flag /wd4800
FlorianPommerening Jul 24, 2023
a931f3d
remove flag /wd4512
FlorianPommerening Jul 24, 2023
5f3fffc
remove flag /wd4706
FlorianPommerening Jul 24, 2023
0fb1b51
remove flag /wd4100
FlorianPommerening Jul 24, 2023
683d5b4
remove flag /wd4127
FlorianPommerening Jul 24, 2023
582e8a9
remove flag /wd4244
FlorianPommerening Jul 24, 2023
e7a1afc
remove flag /wd4309
FlorianPommerening Jul 24, 2023
b3abcfe
remove flag /wd4702
FlorianPommerening Jul 24, 2023
7ef9092
remove flag /wd4239
FlorianPommerening Jul 24, 2023
ce1b432
remove flag /wd4996
FlorianPommerening Jul 24, 2023
306c6c3
remove flag /wd4456
FlorianPommerening Jul 24, 2023
241b99b
remove flag /wd4458
FlorianPommerening Jul 24, 2023
b004fae
remove flag /wd4267
FlorianPommerening Jul 24, 2023
31e5638
remove flag /wd4505
FlorianPommerening Jul 24, 2023
eb5c7d9
trigger workflows
FlorianPommerening Jul 24, 2023
2711620
remove flag /wd4267
FlorianPommerening Jul 24, 2023
af80fdd
remove more flags
FlorianPommerening Jul 24, 2023
697a01b
remove more flags
FlorianPommerening Jul 24, 2023
8210d5b
remove more flags
FlorianPommerening Jul 24, 2023
9513bcd
remove more flags
FlorianPommerening Jul 24, 2023
7384eb3
Treat warnings as errors
FlorianPommerening Jul 25, 2023
8dd9393
enable warning as a test
FlorianPommerening Jul 25, 2023
3abf82f
another try to enable warnings as errors
FlorianPommerening Jul 25, 2023
3546f1d
yet another try to enable warnings as errors
FlorianPommerening Jul 25, 2023
ddc2971
fix environment variable name
FlorianPommerening Jul 25, 2023
c16ffe9
remove debug code
FlorianPommerening Jul 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
shell: cmd
run: |
call "${{ matrix.platform.vc }}" %ARCH%
set CXXFLAGS=/WX
python build.py release
python build.py debug

Expand Down
17 changes: 2 additions & 15 deletions src/cmake_modules/FastDownwardMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,12 @@ macro(fast_downward_set_compiler_flags)
string(REPLACE "/W3" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")

# Disable warnings that currently trigger in the code until we fix them.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4800") # forcing value to bool
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4512") # assignment operator could not be generated
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4706") # assignment within conditional expression (in tree.hh)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4100") # unreferenced formal parameter (in OSI)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4127") # conditional expression is constant (in tree.hh and in our code)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244") # conversion with possible loss of data
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4309") # truncation of constant value (in OSI, see issue857)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4702") # unreachable code
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4239") # nonstandard extension used
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996") # function call with parameters that may be unsafe
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4456") # declaration hides previous local declaration
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4458") # declaration hides class member
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4459") # declaration hides global declaration
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244") # conversion with possible loss of data
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267") # conversion from size_t to int with possible loss of data

# The following are disabled because of what seems to be compiler bugs.
# "unreferenced local function has been removed";
# see http://stackoverflow.com/questions/3051992/compiler-warning-at-c-template-base-class
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4505")

# TODO: Configuration-specific flags. We currently rely on the fact that
# CMAKE_CXX_FLAGS_RELEASE and CMAKE_CXX_FLAGS_DEBUG get reasonable settings
# from cmake. This is the case for most build environments, but we have less
Expand Down