Skip to content

Commit

Permalink
[win/asan] Avoid warnings in compiling interception_win_test.cpp. (#1…
Browse files Browse the repository at this point in the history
…16887)

Example:
  warning: unused variable 'kPatchableCode12' [-Wunused-const-variable]
  • Loading branch information
bernhardu authored Nov 21, 2024
1 parent decb874 commit b89e774
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler-rt/lib/interception/tests/interception_win_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ const u8 kUnpatchableCode6[] = {
0x90, 0x90, 0x90, 0x90,
};

# if SANITIZER_WINDOWS64
const u8 kUnpatchableCode7[] = {
0x33, 0xc0, // xor eax,eax
0x48, 0x85, 0xd2, // test rdx,rdx
Expand Down Expand Up @@ -286,7 +287,9 @@ const u8 kPatchableCode11[] = {
0x48, 0x83, 0xec, 0x38, // sub rsp,38h
0x83, 0x64, 0x24, 0x28, 0x00, // and dword ptr [rsp+28h],0
};
# endif

# if !SANITIZER_WINDOWS64
const u8 kPatchableCode12[] = {
0x55, // push ebp
0x53, // push ebx
Expand All @@ -302,6 +305,7 @@ const u8 kPatchableCode13[] = {
0x56, // push esi
0x8b, 0x5c, 0x24, 0x14, // mov ebx,dword ptr[esp+14h]
};
# endif

const u8 kPatchableCode14[] = {
0x55, // push ebp
Expand Down

0 comments on commit b89e774

Please sign in to comment.