diff options
author | Chad Versace <chad.versace@intel.com> | 2016-04-15 12:33:41 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@intel.com> | 2016-04-15 15:00:58 -0700 |
commit | 4a80890177015fef792ac2e069452fe340f36769 (patch) | |
tree | 215588e463f64795613f1542706ce70bbc5b73fa /src/util/mesa-sha1.c | |
parent | cab30cc5f90b99ba9b5c2bcc34cd88d3523bf30c (diff) | |
download | external_mesa3d-4a80890177015fef792ac2e069452fe340f36769.zip external_mesa3d-4a80890177015fef792ac2e069452fe340f36769.tar.gz external_mesa3d-4a80890177015fef792ac2e069452fe340f36769.tar.bz2 |
util: Fix warning of invalid return value
_mesa_libgcrypt_init() returns NULL, but its return type is void.
Reviewed-by: Mark Janes <mark.a.janes@intel.com>
Diffstat (limited to 'src/util/mesa-sha1.c')
-rw-r--r-- | src/util/mesa-sha1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/mesa-sha1.c b/src/util/mesa-sha1.c index ca6b89b..b6a192f 100644 --- a/src/util/mesa-sha1.c +++ b/src/util/mesa-sha1.c @@ -180,7 +180,8 @@ _mesa_sha1_final(struct mesa_sha1 *ctx, unsigned char result[20]) static void _mesa_libgcrypt_init(void) { if (!gcry_check_version(NULL)) - return NULL; + return; + gcry_control(GCRYCTL_DISABLE_SECMEM, 0); gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0); } |