zeek/auxil/spicy/hilti/runtime/include/compiler-setup.h
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

18 lines
564 B
C

// Copyright (c) 2020-now by the Zeek Project. See LICENSE for details.
//
// This file is included at the beginning of each generated
// C++ file to setup compiler options.
#pragma once
// Options for both GCC and clang
#pragma GCC diagnostic ignored "-Wunused"
#pragma GCC diagnostic ignored "-Winvalid-offsetof" // our type info infrastructure needs this
#if defined(__clang__)
// Clang-specific options.
#pragma clang diagnostic ignored "-Wtautological-compare"
#elif defined(__GNUC__) // note that clang defines this as well
// GCC-specific options
#endif