mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-12-28 18:30:36 -07:00
🧑💻 Warn about language features
This commit is contained in:
parent
8dee0c1281
commit
ccc69582ef
1 changed files with 4 additions and 0 deletions
|
|
@ -31,6 +31,10 @@
|
|||
// Warnings! Located here so they will appear just once in the build output.
|
||||
//
|
||||
|
||||
#if __cplusplus < 201703L
|
||||
#warning "This build does not have access to >= c++17 features."
|
||||
#endif
|
||||
|
||||
// static_warning works like a static_assert but only emits a (messy) warning.
|
||||
#ifdef __GNUC__
|
||||
namespace mfwarn {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue