cimod
C++ library for a binary (and polynomial) quadratic model.
Loading...
Searching...
No Matches
disable_eigen_warning.hpp
Go to the documentation of this file.
1// Copyright 2020-2025 Jij Inc.
2
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6
7// http://www.apache.org/licenses/LICENSE-2.0
8
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
17#ifdef __clang__
18 // Eigen generates a bunch of implicit-copy-constructor-is-deprecated warnings with -Wdeprecated
19 // under Clang, so disable that warning here:
20 #pragma GCC diagnostic ignored "-Wdeprecated"
21#endif
22#if __GNUC__ >= 7
23 #pragma GCC diagnostic ignored "-Wint-in-bool-context"
24 // Eigen generates a bunch of implicit-copy-constructor-is-deprecated warnings with -Wdeprecated
25 // under GCC, so disable that warning here:
26 #pragma GCC diagnostic ignored "-Wdeprecated-copy"
27#endif