Spicy
compiler-setup.h
1 // Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2 //
3 // This file is included at the beginning of each generated
4 // C++ file to setup compiler options.
5 
6 #pragma once
7 
8 // Options for both GCC and clang
9 #pragma GCC diagnostic ignored "-Wunused"
10 #pragma GCC diagnostic ignored "-Winvalid-offsetof" // our type info infrastructure needs this
11 
12 #if defined(__clang__)
13 // Clang-specific options.
14 #pragma clang diagnostic ignored "-Wtautological-compare"
15 #elif defined(__GNUC__) // note that clang defines this as well
16 // GCC-specific options
17 #endif