From 3b835b8d546ca16d7edcb06eda017e276383ea0f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 10 Sep 2018 18:04:04 +0200 Subject: Use [[nodiscard]] in SAL_WARN_UNUSED_RESULT where available ...which required some lax placements of SAL_WARN_UNUSED_RESULT to be fixed. Also, Clang unfortunately is rather picky about the relative order of SAL_WARN_UNUSED_RESULT expanding to [[nodiscard]] and uses of the DLLPUBLIC macros (expanding to __attribute__(...) resp. __declspec(..) for clang-cl). Change-Id: Iae6ca36bef97f1864873aefdb5f05c7f5e045ad3 Reviewed-on: https://gerrit.libreoffice.org/60274 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- config_host/config_global.h.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config_host/config_global.h.in') diff --git a/config_host/config_global.h.in b/config_host/config_global.h.in index d40630ab99c3..7913460d6bf8 100644 --- a/config_host/config_global.h.in +++ b/config_host/config_global.h.in @@ -23,6 +23,9 @@ Any change in this header will cause a rebuild of almost everything. /* Compiler supports __attribute__((warn_unused)). */ #define HAVE_GCC_ATTRIBUTE_WARN_UNUSED 0 +/* [[nodiscard]] (C++17), __has_cpp_attribute(nodiscard) (C++2a): */ +#define HAVE_CPP_ATTRIBUTE_NODISCARD 0 + /* Guaranteed copy elision (C++17), __cpp_guaranteed_copy_elision (C++2a): */ #define HAVE_CPP_GUARANTEED_COPY_ELISION 0 -- cgit