From eee364e8124bfb99079537a789b8aca6476804a9 Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Mon, 8 Apr 2024 22:44:22 +1000 Subject: Only display pragma message on gcc or clang This fixes compilation on older compilers, such as openwatcom --- passgen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/passgen.c b/passgen.c index ff587fc..5837a72 100644 --- a/passgen.c +++ b/passgen.c @@ -67,7 +67,9 @@ bool init_rng(void) )) return false; #elif ! defined (USE_GETENTROPY) && ! defined (USE_WINCRYPT) +#if (defined(__GNUC__) || defined(__clang__)) #pragma message "Using fallback insecure RNG seeding!" +#endif /* * TODO: seed better RNG * this isn't very good, but it's enough(?) for now -- cgit