mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-08 17:39:24 +00:00
opengl-es-cts: Disable -Wuninitialized for external/amber
the code in verifier.cc needs to be ported to use enums or memcpy as it violates aliasing rules. Until then disable the warning HexFloat16ToFloat, HexFloat10ToFloat, HexFloat11ToFloat are the functions to be reworked in external/amber/src/src/verifier.cc Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
From f9906a3a1b7f1ade7a6c4e1a8aa67cb3a5e663a9 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 3 Mar 2021 11:33:15 -0800
|
||||
Subject: [PATCH] Do not error on uninitialized warnings
|
||||
|
||||
code in verifier.cc violates C/C++ aliasing rules so code should be
|
||||
perhaps changed to use a union
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
external/amber/src/CMakeLists.txt | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/external/amber/src/CMakeLists.txt b/external/amber/src/CMakeLists.txt
|
||||
index 80a0df7..4323c81 100644
|
||||
--- a/external/amber/src/CMakeLists.txt
|
||||
+++ b/external/amber/src/CMakeLists.txt
|
||||
@@ -133,6 +133,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
-Werror
|
||||
-Wextra
|
||||
-Wno-unknown-pragmas
|
||||
+ -Wno-error=uninitialized
|
||||
-Wpedantic
|
||||
-pedantic-errors)
|
||||
elseif(MSVC)
|
||||
--
|
||||
2.30.1
|
||||
@@ -9,6 +9,8 @@ SRCREV_spirv-headers = "e4322e3be589e1ddd44afb20ea842a977c1319b8"
|
||||
SRCREV_spirv-tools = "1eb89172a82b436d8037e8a8c29c80f7e1f7df74"
|
||||
SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e"
|
||||
|
||||
SRC_URI += "file://0001-Do-not-error-on-uninitialized-warnings.patch"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_install() {
|
||||
|
||||
Reference in New Issue
Block a user