forked from ad-freiburg/qlever
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make QLever compile with g++-13 (ad-freiburg#991)
- Loading branch information
Showing
7 changed files
with
67 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2023, University of Freiburg, | ||
// Chair of Algorithms and Data Structures. | ||
// Author: Johannes Kalmbach(joka921) <[email protected]> | ||
|
||
#pragma once | ||
|
||
#include <functional> | ||
#include <type_traits> | ||
|
||
// This file contains helper functions and macros to suppress false-positive | ||
// warnings on certain compilers. These should be used rarely and only if it is | ||
// really sure that the suppressed warnings are false positives and that there | ||
// is no feasible way to avoid them. | ||
|
||
// Macros to disable and reenable certain warnings on GCC13. Currently some | ||
// (valid) uses of `std::sort` trigger a false positive `-Warray-bounds` | ||
// warning. It is important that there is a corresponding `ENABLE_...` macro | ||
// issued for every `DISABLE_...` macro. | ||
#if __GNUC__ == 13 | ||
#define DISABLE_WARNINGS_GCC_13 \ | ||
_Pragma("GCC diagnostic push") \ | ||
_Pragma("GCC diagnostic ignored \"-Warray-bounds\"") | ||
|
||
#define ENABLE_WARNINGS_GCC_13 _Pragma("GCC diagnostic pop") | ||
#endif | ||
|
||
#ifndef DISABLE_WARNINGS_GCC_13 | ||
#define DISABLE_WARNINGS_GCC_13 | ||
#define ENABLE_WARNINGS_GCC_13 | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Toolchain that uses G++ 13 | ||
set(CMAKE_C_COMPILER gcc-13) | ||
set(CMAKE_CXX_COMPILER g++-13) |