Skip to content

Commit bd74e01

Browse files
committed
remove Pragma.h
1 parent ee8ada4 commit bd74e01

17 files changed

Lines changed: 6 additions & 57 deletions

CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,17 @@ if(MSVC)
9494
add_compile_options("/wd4267")
9595

9696
# suppress C4251 - VC++ will warn when exporting an entire class which contains members
97-
# referencing unexported compound types is unsafe. because we don't guarantee a stable API
98-
# for our exports, we don't really care about this, so we choose to be lazy and continue to
99-
# export entire classes instead of exporting on a method-by-method basis
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
100100
add_compile_options("/wd4251")
101101

102102
# suppress C4068 - VC++ will warn for unknown pragmas by default. this is equivalent to gcc
103-
# -Wno-unknown-pragmas. we could work around this with sufficiently complex macros
103+
# -Wno-unknown-pragmas (which is enabled for gcc below).
104+
# we could work around this with sufficiently complex macros
104105
add_compile_options("/wd4068")
105106

106-
# suppress C4244 - VC++ warns by default (with /Wall) about narrowing conversions that may lose data
107+
# suppress C4244 - VC++ warns by default (with /W3) about narrowing conversions that may lose data
107108
# (such as double -> int or int32_t -> int16_t). dfhack has many of these, mostly related to Lua
108109
# this is equivalent to gcc -Wno_conversions which is the default as gcc -Wall doesn't enable -Wconversions
109110
add_compile_options("/wd4244")

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
{

library/include/Internal.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,5 @@ distribution.
3434
#define _FILE_OFFSET_BITS 64
3535
#endif
3636

37-
// one file for telling the MSVC compiler where it can shove its pointless warnings
38-
#include "Pragma.h"
39-
4037
// C99 integer types
4138
#include <stdint.h>

library/include/MemAccess.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ distribution.
2828
#ifndef PROCESS_H_INCLUDED
2929
#define PROCESS_H_INCLUDED
3030

31-
#include "Pragma.h"
3231
#include "Export.h"
3332
#include <iostream>
3433
#include <cstring>

library/include/Pragma.h

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)