Skip to content
Snippets Groups Projects
Commit 230e8879 authored by Christian Engwer's avatar Christian Engwer
Browse files

new test for deprecated warnings

[[Imported from SVN: r1114]]
parent b6f5112c
No related branches found
No related tags found
No related merge requests found
# $Id$
# Check for the right way to create the deprecated warning
AC_DEFUN([DUNE_CHECKDEPRECATED],[
AC_MSG_CHECKING([for __attribute__((deprecated))])
AC_TRY_COMPILE([int foo() __attribute__((deprecated));
int foo() {};],[],
[DUNE_DEPRECATED="__attribute__((deprecated))"
AC_MSG_RESULT(yes)],
[DUNE_DEPRECATED=""
AC_MSG_RESULT(no)])
AC_DEFINE_UNQUOTED(DUNE_DEPRECATED, $DUNE_DEPRECATED,
[how to create a deprecated warning])
])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment