mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 04:10:40 +01:00
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>
This commit is contained in:
parent
cab30cc5f9
commit
4a80890177
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue