From: Matthew Fernandez Date: Tue, 10 Jan 2023 15:57:43 +0000 (-0800) Subject: cgraph: remove advice about '[[maybe_unused]]' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9813580c72a61e18b9fb9e36e195178964ead2f;p=graphviz cgraph: remove advice about '[[maybe_unused]]' This attribute was only introduced in C++17 and we currently build with C++11. --- diff --git a/lib/cgraph/unused.h b/lib/cgraph/unused.h index 0b29a08f4..f08510373 100644 --- a/lib/cgraph/unused.h +++ b/lib/cgraph/unused.h @@ -12,7 +12,6 @@ /// /// Use this sparingly, as the MSVC version applies to everything in both the /// current and next line, so can end up accidentally masking genuine problems. -/// Only use this in C code. In C++, use `[[maybe_unused]]`. #ifdef __GNUC__ // Clang and GCC #define UNUSED __attribute__((unused)) #elif defined(_MSC_VER) // MSVC