Mesa (main): util: Removed unused statement from FreeBSD build
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 28 18:39:33 UTC 2021
Module: Mesa
Branch: main
Commit: 91b83dce0a0fad08f5e948c503328330277706e6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=91b83dce0a0fad08f5e948c503328330277706e6
Author: Eleni Maria Stea <elene.mst at gmail.com>
Date: Mon Jun 7 09:13:34 2021 +0300
util: Removed unused statement from FreeBSD build
Statement (void*)debug_name when FreeBSD is defined has no use. Removed
it to fix compiler warnings.
Signed-off-by: Eleni Maria Stea <elene.mst at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11203>
---
src/util/anon_file.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/util/anon_file.c b/src/util/anon_file.c
index 6c8885707f4..f8d9ef204c4 100644
--- a/src/util/anon_file.c
+++ b/src/util/anon_file.c
@@ -116,7 +116,6 @@ os_create_anonymous_file(off_t size, const char *debug_name)
{
int fd, ret;
#ifdef __FreeBSD__
- (void*)debug_name;
fd = shm_open(SHM_ANON, O_CREAT | O_RDWR | O_CLOEXEC, 0600);
#elif defined(__OpenBSD__)
char template[] = "/tmp/mesa-XXXXXXXXXX";
More information about the mesa-commit
mailing list