From 768644ba7a54e8b8e3960d706082a2afbbf4c023 Mon Sep 17 00:00:00 2001 From: Konstantin Zhuravlyov Date: Mon, 8 May 2017 19:39:49 -0400 Subject: [PATCH] Purge warning in amd_hsa_code.cpp Change-Id: Iaa5d7af183af5e8c069365a1f0410365b46d53d5 [ROCm/ROCR-Runtime commit: a7774134000ffb980715d1d25411b510c555b296] --- .../runtime/hsa-runtime/libamdhsacode/amd_hsa_code.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_hsa_code.cpp b/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_hsa_code.cpp index 5780e3b992..5579a54f0b 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_hsa_code.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_hsa_code.cpp @@ -1505,15 +1505,11 @@ namespace code { bool AmdHsaCode::PullElfV2() { - Segment* note = NULL; for (size_t i = 0; i < img->segmentCount(); ++i) { Segment* s = img->segment(i); if (s->type() == PT_LOAD) { dataSegments.push_back(s); } - else if (s->type() == PT_NOTE && s->align() >= 4) { - note = s; - } } for (size_t i = 0; i < img->sectionCount(); ++i) { Section* sec = img->section(i);