Skip to content

Commit 1deac1d

Browse files
committed
Merge branch 'develop' into testing
2 parents bb380ba + 0ad1fd5 commit 1deac1d

27 files changed

Lines changed: 63 additions & 106 deletions

CMakeLists.txt

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,27 @@ if(MSVC)
8888
# see https://msdn.microsoft.com/en-us/library/074af4b6.aspx
8989
add_compile_options("/wd4503")
9090

91-
# suppress C4267 - VC++ complains whenever we implicitly convert an integer to
92-
# a smaller type, and most of the time this is just conversion from 64 to 32 bits
93-
# for things like vector sizes, which are never that big anyway.
91+
# suppress C4267 - VC++ considers a narrowing conversion from size_t to a smaller
92+
# integer type a warning. this is technically correct but there are so many instances
93+
# of this that we don't want to fix, so....
9494
add_compile_options("/wd4267")
9595

96+
# suppress C4251 - VC++ will warn when exporting an entire class which contains members
97+
# referencing unexported compound types as this is potentially unsafe. because we don't
98+
# guarantee a stable ABI for exports, we don't really care about this, and so we choose to
99+
# be lazy and continue to export entire classes instead of exporting on a method-by-method basis
100+
add_compile_options("/wd4251")
101+
102+
# suppress C4068 - VC++ will warn for unknown pragmas by default. this is equivalent to gcc
103+
# -Wno-unknown-pragmas (which is enabled for gcc below).
104+
# we could work around this with sufficiently complex macros
105+
add_compile_options("/wd4068")
106+
107+
# suppress C4244 - VC++ warns by default (with /W3) about narrowing conversions that may lose data
108+
# (such as double -> int or int32_t -> int16_t). dfhack has many of these, mostly related to Lua
109+
# this is equivalent to gcc -Wno_conversions which is the default as gcc -Wall doesn't enable -Wconversions
110+
add_compile_options("/wd4244")
111+
96112
# MSVC panics if an object file contains more than 65,279 sections. this
97113
# happens quite frequently with code that uses templates, such as vectors.
98114
add_compile_options("/bigobj")
@@ -224,7 +240,7 @@ if(UNIX)
224240
# default to hidden symbols
225241
# ensure compatibility with older CPUs
226242
add_definitions(-DLINUX_BUILD)
227-
set(GCC_COMMON_FLAGS "-fvisibility=hidden -mtune=generic -Wall -Werror -Wl,--disable-new-dtags")
243+
set(GCC_COMMON_FLAGS "-fvisibility=hidden -mtune=generic -Wall -Werror -Wl,--disable-new-dtags -Wno-unknown-pragmas")
228244
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COMMON_FLAGS}")
229245
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GCC_COMMON_FLAGS}")
230246
if(DFHACK_BUILD_64)

data/blueprints/dreamfort.csv

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,11 +2132,11 @@ build3/services_build3
21322132

21332133
"#zone label(services_zones) start(18; 18) hidden() message(Don't forget to assign a doctor to the hospital!
21342134
If you'd like to fill your wells via bucket brigade instead of routing water (e.g. with the aquifer_tap library blueprint), activate the inactive pond zones one level down from where the wells will be built.) garbage dump, hospital, taverrn, barracks, archery range, and pond zones"
2135-
,,,,,,,,,,,,,"j{name=""Jail 1""}(4x5)",,,,"j{name=""Jail 2""}(4x5)",,,,"j{name=""Jail 3""}(4x5)",,,,"j{name=""Jail 4""}(4x5)",,,,"j{name=""Jail 5""}(4x5)"
2136-
,"b{location=tavern/bigpub name=""Rented room 1""}(1x3)","b{location=tavern/bigpub name=""Rented room 2""}(1x3)","b{location=tavern/bigpub name=""Rented room 3""}(1x3)",,"b{location=tavern/bigpub name=""Rented room 4""}(1x3)","b{location=tavern/bigpub name=""Rented room 5""}(1x3)","b{location=tavern/bigpub name=""Rented room 6""}(1x3)",,"b{location=tavern/bigpub name=""Rented room 7""}(1x3)","b{location=tavern/bigpub name=""Rented room 8""}(1x3)","b{location=tavern/bigpub name=""Rented room 9""}(1x3)",,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`
2137-
,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`
2138-
,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`
2139-
"h{location=tavern/bigpub allow=residents name=""Grand hall tavern""}(13x31)",,`,,,,`,,,,`,,,,`,,,,`,,,,`,,,,`,,,,`
2135+
,,,,,,,,,,,,j/jail1,"j/jail1{name=""Jail 1""}(4x5)",j/jail1,j/jail1,j/jail1,"j{name=""Jail 2""}(4x5)",,,,"j{name=""Jail 3""}(4x5)",,,,"j{name=""Jail 4""}(4x5)",,,,"j{name=""Jail 5""}(4x5)"
2136+
,"b{location=tavern/bigpub name=""Rented room 1""}(1x3)","b{location=tavern/bigpub name=""Rented room 2""}(1x3)","b{location=tavern/bigpub name=""Rented room 3""}(1x3)",,"b{location=tavern/bigpub name=""Rented room 4""}(1x3)","b{location=tavern/bigpub name=""Rented room 5""}(1x3)","b{location=tavern/bigpub name=""Rented room 6""}(1x3)",,"b{location=tavern/bigpub name=""Rented room 7""}(1x3)","b{location=tavern/bigpub name=""Rented room 8""}(1x3)","b{location=tavern/bigpub name=""Rented room 9""}(1x3)",j/jail1,j/jail1,j/jail1,j/jail1,j/jail1,`,`,`,,`,`,`,,`,`,`,,`,`,`
2137+
,`,`,`,,`,`,`,,`,`,`,j/jail1,j/jail1,j/jail1,j/jail1,j/jail1,`,`,`,,`,`,`,,`,`,`,,`,`,`
2138+
,`,`,`,,`,`,`,,`,`,`,j/jail1,j/jail1,j/jail1,j/jail1,j/jail1,`,`,`,,`,`,`,,`,`,`,,`,`,`
2139+
"h{location=tavern/bigpub allow=residents name=""Grand hall tavern""}(13x31)",,`,,,,`,,,,`,,,j/jail1,j/jail1,j/jail1,j/jail1,,`,,,,`,,,,`,,,,`
21402140
,`,`,`,`,`,`,`,`,`,`,`,,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
21412141
,`,`,`,`,`,`,`,`,`,`,`,,,,,,,,,,,,,,`,o/interrogation,o/interrogation,o/interrogation,o/interrogation,o/interrogation,o/interrogation,o/interrogation
21422142
,`,`,`,`,`,`,`,`,`,`,`,,"B{name=""Marksdwarf barracks""}a{name=""Shooting gallery"" shoot_from=""south""}",Ba,Ba,Ba,Ba,Ba,Ba,Ba,Ba,Ba,Ba,,`,o/interrogation,"j{name=""Drunk tank""}",j,j,j,j,o/interrogation
@@ -2360,7 +2360,7 @@ Assign a minecart to the training ammo quantum dump with ""assign-minecarts all"
23602360

23612361
,`,b,`,,`,b,`,,`,b,`,,`,`,`,,`,`,`,,t,l,b,,`,`,`,,`,`,`
23622362
,`,h,`,,`,h,`,,`,h,`,,`,`,`,,`,`,`,,c,v,`,,`,`,`,,`,`,`
2363-
,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`
2363+
,`,f,`,,`,f,`,,`,f,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`
23642364
,,`,,,,`,,,,`,,,,`,,,,`,,,,d,,,,`,,,,`
23652365
,`,`,`,`,`,`,`,`,`,`,`,,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
23662366
,`,`,`,`,`,`,`,`,`,`,`,,,,,,,,,,,,,,`
@@ -2468,7 +2468,7 @@ Assign a minecart to the training ammo quantum dump with ""assign-minecarts all"
24682468

24692469
,b,~,b,,b,~,b,,b,~,b,,t,l,b,,t,l,b,,~,~,~,,t,l,b,,t,l,b
24702470
,h,~,h,,h,~,h,,h,~,h,,c,v,`,,c,v,`,,~,~,`,,c,v,`,,c,v,`
2471-
,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`
2471+
,f,~,f,,f,~,f,,f,~,f,,`,`,`,,`,`,`,,`,`,`,,`,`,`,,`,`,`
24722472
,,d,,,,d,,,,d,,,,d,,,,d,,,,~,,,,d,,,,d
24732473
,`,`,`,s,`,`,`,s,`,`,`,,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
24742474
,`,`,`,`,`,`,`,`,`,`,`,,,,,,,,,,,,,,`

depends/clsocket

docs/changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ Template for new versions:
5656
## New Features
5757

5858
## Fixes
59+
- `preserve-rooms`: don't reserve a room for citizens that you expel from the fort
60+
- `autobutcher`: fix regression in ordering of butcherable animals
5961

6062
## Misc Improvements
6163

library/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,10 @@ set(MAIN_HEADERS
6969
include/Memory.h
7070
include/MiscUtils.h
7171
include/Module.h
72-
include/Pragma.h
7372
include/MemAccess.h
7473
include/ModuleFactory.h
7574
include/PluginManager.h
7675
include/PluginStatics.h
77-
include/Pragma.h
7876
include/RemoteClient.h
7977
include/RemoteServer.h
8078
include/RemoteTools.h

library/include/BitArray.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ distribution.
2323
*/
2424

2525
#pragma once
26-
#include "Pragma.h"
2726
#include "Export.h"
2827
#include "Error.h"
2928
#include <stdint.h>

library/include/ColorText.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ distribution.
2323
*/
2424

2525
#pragma once
26-
#include "Pragma.h"
2726
#include "Export.h"
2827

2928
#include <list>

library/include/Console.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ distribution.
2323
*/
2424

2525
#pragma once
26-
#include "Pragma.h"
2726
#include "Export.h"
2827
#include "ColorText.h"
2928
#include <atomic>

library/include/Core.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ distribution.
2424

2525
#pragma once
2626

27-
#include "Pragma.h"
28-
2927
#include "Console.h"
3028
#include "Export.h"
3129
#include "Hooks.h"

library/include/Error.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ distribution.
3030

3131
#include "Export.h"
3232
#include "MiscUtils.h"
33-
#include "Pragma.h"
3433

3534
namespace DFHack
3635
{

0 commit comments

Comments
 (0)