]> granicus.if.org Git - graphviz/commitdiff
cgraph: remove advice about '[[maybe_unused]]'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 10 Jan 2023 15:57:43 +0000 (07:57 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Jan 2023 17:05:18 +0000 (09:05 -0800)
This attribute was only introduced in C++17 and we currently build with C++11.

lib/cgraph/unused.h

index 0b29a08f408a54fb8e5258ceb6c1493db43443f9..f08510373ed3ff5ff6b748d73ea76f690b46bee1 100644 (file)
@@ -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