Protect GCC #pragmas.

This commit is contained in:
Jeff Young 2020-02-20 22:01:17 +00:00
parent e033e394e7
commit e1d59337d1
11 changed files with 80 additions and 8 deletions

View File

@ -30,8 +30,14 @@
// 'FT232BL' 'QFP:LQFP-32_7x7mm_Pitch0.8mm'
//
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // For boost...
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <boost/ptr_container/ptr_vector.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
class FOOTPRINT_EQUIVALENCE
{

View File

@ -31,8 +31,14 @@
#ifndef CLASS_LIBRARY_H
#define CLASS_LIBRARY_H
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // For boost...
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <boost/ptr_container/ptr_vector.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include <wx/filename.h>

View File

@ -25,8 +25,14 @@
#ifndef SCH_SHEEET_H
#define SCH_SHEEET_H
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // For boost...
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <boost/ptr_container/ptr_vector.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include <sch_text.h>

View File

@ -34,8 +34,14 @@
#include <wx/confbase.h>
#include <wx/fileconf.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // For boost...
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <boost/ptr_container/ptr_vector.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include <gal/color4d.h>
#include <limits>

View File

@ -30,8 +30,14 @@
#define FOOTPRINT_INFO_H_
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <boost/ptr_container/ptr_vector.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include <import_export.h>
#include <ki_exception.h>

View File

@ -28,9 +28,15 @@
#include <map>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // For boost...
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <boost/noncopyable.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include <memory>

View File

@ -26,8 +26,14 @@
#ifndef MULTIVECTOR_H
#define MULTIVECTOR_H
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // For boost...
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <boost/ptr_container/ptr_vector.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include <stdexcept>

View File

@ -22,7 +22,16 @@
#define _PARAMETERS_H
#include <string>
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <boost/ptr_container/ptr_vector.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include <utility>
#include <math/util.h>

View File

@ -73,8 +73,14 @@ Vary: Accept-Encoding
#include <kicad_curl/kicad_curl_easy.h> // Include before any wx file
#include <sstream>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // For boost...
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <boost/ptr_container/ptr_map.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include <set>

View File

@ -26,8 +26,14 @@
#ifndef PCB_NETLIST_H
#define PCB_NETLIST_H
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // For boost...
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <boost/ptr_container/ptr_vector.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include <wx/arrstr.h>

View File

@ -26,12 +26,21 @@
#define SPECCTRA_H_
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
// see http://www.boost.org/libs/ptr_container/doc/ptr_sequence_adapter.html
#include <boost/ptr_container/ptr_vector.hpp>
// see http://www.boost.org/libs/ptr_container/doc/ptr_set.html
#include <boost/ptr_container/ptr_set.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include <fctsys.h>
#include <specctra_import_export/specctra_lexer.h>
#include <pcbnew.h>