/usr/share/dune/aclocal/dune_unused.m4 is in libdune-common-dev 2.2.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Check if __attribute__((unused)) is supported
AC_DEFUN([DUNE_CHECKUNUSED],[
AC_CACHE_CHECK([for __attribute__((unused))], dune_cv_attribute_unused, [
AC_LANG_PUSH([C++])
AC_TRY_COMPILE([#define UNUSED __attribute__((unused))
void f(int a UNUSED, int UNUSED)
{
int UNUSED b;
}],
[],
dune_cv_attribute_unused="yes",
dune_cv_attribute_unused="no")
AC_LANG_POP([C++])
])
AS_IF([test "x$dune_cv_attribute_unused" = "xyes"],
[AC_DEFINE_UNQUOTED(HAS_ATTRIBUTE_UNUSED,
1,
[does the compiler support __attribute__((unused))?])],)
AH_BOTTOM([#include <dune/common/unused.hh>])
])
|