Commit 0d46f6f5 authored by Stefan Gränitz's avatar Stefan Gränitz
Browse files

Fix clang compiler warnings: unknown warning group '-Wclass-memaccess' (NFC)

This fixes the majority of compile warnings when building with Debian clang version 11.1.0.
parent a5590a85
......@@ -25,7 +25,7 @@
// Implementation of the ACSL++ lexer.
//
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
......@@ -43,7 +43,7 @@
#include "clang/Sema/Lookup.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Lex/MacroArgs.h"
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
......
......@@ -25,7 +25,7 @@
// Implementation of the ACSL++ parser.
//
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
......@@ -38,7 +38,7 @@
#include "clang/Sema/Lookup.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Lex/MacroArgs.h"
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
......
......@@ -25,7 +25,7 @@
// Definition of a translator clang -> intermediate_format (-> cabs -> cil).
//
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
......@@ -47,7 +47,7 @@
#include <sstream>
#include <cstddef>
#include <list>
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
......
......@@ -36,7 +36,7 @@
#include <set>
#include <map>
#include <functional>
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
......@@ -46,7 +46,7 @@
#include "clang/AST/DeclTemplate.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/FileManager.h"
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
......
......@@ -25,7 +25,7 @@
// Definition of a translator clang -> intermediate_format (-> cabs -> cil).
//
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
......@@ -52,7 +52,7 @@
#include <sstream>
#include <cstddef>
#include <list>
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
......
......@@ -28,13 +28,13 @@
#ifndef Table_RTTIH
#define Table_RTTIH
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
#include <list>
#include "clang/AST/DeclCXX.h"
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
......
......@@ -28,12 +28,12 @@
#ifndef Visit_TableH
#define Visit_TableH
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
#include "clang/AST/DeclCXX.h"
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment