aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 00:55:14 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 02:01:44 +0300
commit571b226d2dffe2bc9604953df33fcbf8d3b7c21d (patch)
tree6aeb46beaf16aae499317fab2dca37563d6fecd0
parentmingw builds: define _WIN32_WINNT (diff)
downloadwinapi-debug-571b226d2dffe2bc9604953df33fcbf8d3b7c21d.tar.gz
winapi-debug-571b226d2dffe2bc9604953df33fcbf8d3b7c21d.zip
mingw builds: get rid of #pragma warning
Diffstat (limited to '')
-rw-r--r--include/pdb/module.hpp4
-rw-r--r--include/pdb/symbol.hpp4
-rw-r--r--include/pdb/utils/file.hpp2
-rw-r--r--src/dbghelp.cpp4
-rw-r--r--utils/addr2name.cpp2
-rw-r--r--utils/command_line.hpp2
-rw-r--r--utils/enum_symbols.cpp2
-rw-r--r--utils/name2addr.cpp2
-rw-r--r--utils/pdb_descr.hpp2
9 files changed, 3 insertions, 21 deletions
diff --git a/include/pdb/module.hpp b/include/pdb/module.hpp
index 47eeef3..db6722e 100644
--- a/include/pdb/module.hpp
+++ b/include/pdb/module.hpp
@@ -7,10 +7,8 @@
#include "address.hpp"
-#include <Windows.h>
-#pragma warning(push, 0)
#include <DbgHelp.h>
-#pragma warning(pop)
+#include <Windows.h>
#include <string>
diff --git a/include/pdb/symbol.hpp b/include/pdb/symbol.hpp
index e7ca523..b9dff85 100644
--- a/include/pdb/symbol.hpp
+++ b/include/pdb/symbol.hpp
@@ -10,10 +10,8 @@
#include <SafeInt.hpp>
-#include <Windows.h>
-#pragma warning(push, 0)
#include <DbgHelp.h>
-#pragma warning(pop)
+#include <Windows.h>
#include <cstddef>
#include <cstring>
diff --git a/include/pdb/utils/file.hpp b/include/pdb/utils/file.hpp
index acb5cfc..8054847 100644
--- a/include/pdb/utils/file.hpp
+++ b/include/pdb/utils/file.hpp
@@ -5,9 +5,7 @@
#pragma once
-#pragma warning(push, 0)
#include <boost/functional/hash.hpp>
-#pragma warning(pop)
#include <Windows.h>
diff --git a/src/dbghelp.cpp b/src/dbghelp.cpp
index af8d64d..eba887e 100644
--- a/src/dbghelp.cpp
+++ b/src/dbghelp.cpp
@@ -7,10 +7,8 @@
#include <SafeInt.hpp>
-#include <Windows.h>
-#pragma warning(push, 0)
#include <DbgHelp.h>
-#pragma warning(pop, 0)
+#include <Windows.h>
#include <cstddef>
#include <cstring>
diff --git a/utils/addr2name.cpp b/utils/addr2name.cpp
index 96a1e12..bac508e 100644
--- a/utils/addr2name.cpp
+++ b/utils/addr2name.cpp
@@ -7,9 +7,7 @@
#include "pdb/all.hpp"
#include "pdb_descr.hpp"
-#pragma warning(push, 0)
#include <boost/program_options.hpp>
-#pragma warning(pop)
#include <exception>
#include <iostream>
diff --git a/utils/command_line.hpp b/utils/command_line.hpp
index c991e4a..f99c3c1 100644
--- a/utils/command_line.hpp
+++ b/utils/command_line.hpp
@@ -5,10 +5,8 @@
#pragma once
-#pragma warning(push, 0)
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
-#pragma warning(pop)
#include <exception>
#include <iostream>
diff --git a/utils/enum_symbols.cpp b/utils/enum_symbols.cpp
index 0759dd6..77171a5 100644
--- a/utils/enum_symbols.cpp
+++ b/utils/enum_symbols.cpp
@@ -7,9 +7,7 @@
#include "pdb/all.hpp"
#include "pdb_descr.hpp"
-#pragma warning(push, 0)
#include <boost/program_options.hpp>
-#pragma warning(pop)
#include <exception>
#include <iostream>
diff --git a/utils/name2addr.cpp b/utils/name2addr.cpp
index f5b3b26..aeaa13a 100644
--- a/utils/name2addr.cpp
+++ b/utils/name2addr.cpp
@@ -7,9 +7,7 @@
#include "pdb/all.hpp"
#include "pdb_descr.hpp"
-#pragma warning(push, 0)
#include <boost/program_options.hpp>
-#pragma warning(pop)
#include <exception>
#include <iostream>
diff --git a/utils/pdb_descr.hpp b/utils/pdb_descr.hpp
index f2e6f38..34f6266 100644
--- a/utils/pdb_descr.hpp
+++ b/utils/pdb_descr.hpp
@@ -7,9 +7,7 @@
#include "pdb/all.hpp"
-#pragma warning(push, 0)
#include <boost/program_options.hpp>
-#pragma warning(pop)
#include <sstream>
#include <string>