X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Frandom.cpp;h=b282d67d0157386c26e8343709865bf66145d817;hb=45cc2527c1b679884570130eca8f285b2a9a8406;hp=8d9bcfd41e0beb09147918c569d03b83fcfbf32e;hpb=56a9a0b750db49640129cb9b13cf384e9e82284c;p=lttng-tools.git diff --git a/src/common/random.cpp b/src/common/random.cpp index 8d9bcfd41..b282d67d0 100644 --- a/src/common/random.cpp +++ b/src/common/random.cpp @@ -72,7 +72,9 @@ void getrandom_nonblock(char *out_data, std::size_t size) } } #else /* defined(__linux__) && defined(SYS_getrandom) && defined(HAVE_SYS_RANDOM_H) */ -void getrandom_nonblock(char *out_data, std::size_t size) +__attribute__((noreturn)) +void getrandom_nonblock(char *out_data __attribute__((unused)), + std::size_t size __attribute__((unused))) { LTTNG_THROW_RANDOM_PRODUCTION_ERROR("getrandom() is not supported by this platform"); }