aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2024-04-08 22:44:22 +1000
committerNicholas Tay <nick@windblume.net>2024-04-08 22:44:22 +1000
commiteee364e8124bfb99079537a789b8aca6476804a9 (patch)
tree5816e8e4d3852cf68f7b9019774d13a24740ad03
parent4bb135bc104adcef1bea79726b8a6e5d6c73449f (diff)
downloadpassgen-eee364e8124bfb99079537a789b8aca6476804a9.tar.gz
passgen-eee364e8124bfb99079537a789b8aca6476804a9.tar.bz2
passgen-eee364e8124bfb99079537a789b8aca6476804a9.zip
Only display pragma message on gcc or clang
This fixes compilation on older compilers, such as openwatcom
-rw-r--r--passgen.c2
1 files changed, 2 insertions, 0 deletions
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