- 01 Jan, 2021 1 commit
-
-
Max Kellermann authored
-
- 16 Mar, 2020 4 commits
-
-
Rosen Penev authored
[[maybe_unused]] (introduced in C++17) is standard C++. https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused says that this is equivalent to the GNU unused attribute. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
[[nodiscard] (introduced in C++17) can be used instead. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
[[deprecated]] (introduced in C++14) may be used instead. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 18 Jan, 2020 1 commit
-
-
Max Kellermann authored
-
- 31 Dec, 2019 1 commit
-
-
Jacob Vosmaer authored
It appears that [[fallthrough]] is valid in C++ but not in C. And in some Clang versions (e.g. Clang 11 on macOS), Clang is pedantic about this and considers it an error to use [[fallthrough]] in a .c file such as src/util/format.c. This changes makes gcc_fallthrough a no-op under Clang in C files.
-
- 24 Dec, 2019 1 commit
-
-
Max Kellermann authored
Older clang versions don't support the GCC __attribute__ syntax. For those, don't use anything at all, and new clang versions shall use the standard syntax.
-
- 23 Dec, 2019 1 commit
-
-
Max Kellermann authored
Works around build failures with ccache which may feed processed code to GCC, which doesn't have the "fall through" code comments.
-
- 02 Aug, 2019 1 commit
-
-
Max Kellermann authored
-
- 17 Jun, 2019 1 commit
-
-
Max Kellermann authored
-
- 31 Oct, 2018 1 commit
-
-
Max Kellermann authored
-
- 20 Aug, 2018 1 commit
-
-
Max Kellermann authored
-
- 06 Jul, 2018 1 commit
-
-
Max Kellermann authored
Meanwhile, GCC 5 fails to compile MPD due to incomplete C++14 implementation.
-
- 27 Dec, 2017 1 commit
-
-
Max Kellermann authored
Supporting GCC 4.9 is becoming cumbersome as we refactor more code to C++14. This shouldn't be a problem for anybody, because Debian Stable (Stretch) has version 6.3, and Ubuntu LTS (Xenial) has version 5.3.
-
- 18 Dec, 2017 1 commit
-
-
Max Kellermann authored
-
- 08 Feb, 2017 1 commit
-
-
Max Kellermann authored
-
- 03 Jan, 2017 1 commit
-
-
Max Kellermann authored
-
- 18 Nov, 2016 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 23 Aug, 2016 5 commits
-
-
Max Kellermann authored
Check {GCC,CLANG}_VERSION==0 or >0 instead of using defined(), which may render undefined behavior.
-
Max Kellermann authored
-
Max Kellermann authored
GCC_VERSION>0 implies defined(__GNUC__).
-
Max Kellermann authored
-
Max Kellermann authored
-
- 29 Jul, 2016 1 commit
-
-
Max Kellermann authored
The ScopeExit library uses C++11 initializers, which gcc 4.6 does not support. Let's kill support for this ancient incomplete C++11 compiler, nobody should be using it anymore.
-
- 26 Feb, 2016 1 commit
-
-
Max Kellermann authored
-
- 01 Jan, 2015 1 commit
-
-
Max Kellermann authored
-
- 26 Dec, 2014 4 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 28 Nov, 2014 5 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 13 Jan, 2014 1 commit
-
-
Max Kellermann authored
-
- 15 Oct, 2013 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Copy the according file from another project (i.e. XCSoar). This will allow copying more code more easily.
-