port: add missing attributes in getrandom_nonblock() on macOS
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 7 Mar 2023 19:10:00 +0000 (14:10 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Mar 2023 18:19:27 +0000 (14:19 -0400)
Change-Id: I2e4944cf17ba72c75b8c5cfd5ce0d7b806d14b67
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/random.cpp

index 8d9bcfd41e0beb09147918c569d03b83fcfbf32e..b282d67d0157386c26e8343709865bf66145d817 100644 (file)
@@ -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");
 }
This page took 0.026526 seconds and 4 git commands to generate.