Skip to content

Commit 15e9a1a

Browse files
committed
Silence warnings in imported code
These components use coding practices that trigger warnings included in -Wall. However, they are not indicative of an issue in these cases. -Waddress: PRINT_BYTE_ARRAY macro tests for null pointer, but calling code ensures it's not null (warning is "will never be null"). -Wunused-function: quote3_error_to_aesm_error is defined, but it's only referenced in code that is wrapped in "#if 0". PiperOrigin-RevId: 255022467 Change-Id: I655d151b5b2c588c242f6b4363a1c675f36355a9
1 parent 408001f commit 15e9a1a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

asylo/distrib/sgx_dcap_1_0_1.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ diff -Nur -x '*.png' -x '*.gif' -x .gitignore QuoteGeneration/psw/quote_wrapper/
6262
Binary files QuoteVerification/Src/AttestationApp/sampleData/quote.dat and QuoteVerification/Src/AttestationApp/sampleData/quote.dat differ
6363
--- /dev/null
6464
+++ BUILD
65-
@@ -0,0 +1,252 @@
65+
@@ -0,0 +1,253 @@
6666
+# Description: sgx_data_center_attestation_primitives is the Intel SGX Data
6767
+# Center Attestation Primitives library for linux.
6868
+
@@ -227,6 +227,7 @@ Binary files QuoteVerification/Src/AttestationApp/sampleData/quote.dat and Quote
227227
+ "-Iexternal/sgx_dcap/QuoteGeneration/common/inc/internal",
228228
+ "-Iexternal/sgx_dcap/QuoteGeneration/psw/quote_wrapper/common/inc",
229229
+ "-Iexternal/sgx_dcap/QuoteGeneration/psw/pce_wrapper/inc",
230+
+ "-Wno-address",
230231
+ ],
231232
+ # The linker option below works around a linker issue. The PCE interface is
232233
+ # implemented twice in both SGX DCAP and SGX SDK. The latter is used to

asylo/distrib/sgx_x86_64/linux_sgx_2_5.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3126,7 +3126,7 @@ diff -Nur sdk/trts/trts_util.h sdk/trts/trts_util.h
31263126
bool is_valid_sp(uintptr_t sp);
31273127
--- /dev/null
31283128
+++ BUILD
3129-
@@ -0,0 +1,1282 @@
3129+
@@ -0,0 +1,1283 @@
31303130
+# linux-sgx is the Intel SGX SDK
31313131
+
31323132
+load(
@@ -3447,6 +3447,7 @@ diff -Nur sdk/trts/trts_util.h sdk/trts/trts_util.h
34473447
+ "-Iexternal/linux_sgx/psw/urts/linux",
34483448
+ "-Iexternal/linux_sgx/psw/urts/parser",
34493449
+ "-Iexternal/boringssl",
3450+
+ "-Wno-unused-function",
34503451
+ ],
34513452
+ linkopts = [
34523453
+ "-Wl,--no-as-needed -ldl",

0 commit comments

Comments
 (0)