On Mon, Mar 12, 2018 at 2:49 PM, Niels Möller nisse@lysator.liu.se wrote:
Nikos Mavrogiannopoulos nmav@redhat.com writes:
#ifdef __GNUC__ # define _GNUTLS_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
# if _GNUTLS_GCC_VERSION >= 30100 # define _GNUTLS_GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__)) # endif #endif
That means that __attribute__ ((__deprecated__)) was introduced in gcc-3.1 ? Is that documented somewhere? I find no mention in https://gcc.gnu.org/gcc-3.1/changes.html.
I believe the versions for '__attribute__((deprecated (msg)))' are:
* GCC 4.5 * LLVM Clang 2.8 * Apple Clang 4.2
There is a version without 'msg' that has been around since the GCC 3 days. But I can't find it either. If the 'msg' version is not available you are usually safe to fall back to the non-msg version with GCC. I've never seen the non-msg version break a compile.
Jeff