Mark magic member of gralloc_handle_t as const. Sign-off-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> --- android/gralloc_handle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/android/gralloc_handle.h b/android/gralloc_handle.h index 647351eedaf7..e4ef8179f584 100644 --- a/android/gralloc_handle.h +++ b/android/gralloc_handle.h @@ -33,7 +33,7 @@ struct gralloc_handle_t { native_handle_t base; /* api variables */ - int magic; /* differentiate between allocator impls */ + const int magic; /* differentiate between allocator impls */ const uint32_t version; /* api version */ int prime_fd; /* dma-buf file descriptor */ -- 2.14.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev