Blame SOURCES/0001-cpuinfo-Fix-compiler-warnings-in-cpuinfo-code.patch

df7b7f
From 1ed69e46e27b9085507e5498dbcc354dd5563338 Mon Sep 17 00:00:00 2001
df7b7f
From: Petr Oros <poros@redhat.com>
df7b7f
Date: Tue, 12 Sep 2017 16:29:48 +0200
df7b7f
Subject: [PATCH] cpuinfo: Fix compiler warnings in cpuinfo code
df7b7f
df7b7f
Signed-off-by: Petr Oros <poros@redhat.com>
df7b7f
---
df7b7f
 src/core/cpuinfo.cc | 6 ++----
df7b7f
 1 file changed, 2 insertions(+), 4 deletions(-)
df7b7f
df7b7f
diff --git a/src/core/cpuinfo.cc b/src/core/cpuinfo.cc
df7b7f
index c617ef2..0fb0ea3 100644
df7b7f
--- a/src/core/cpuinfo.cc
df7b7f
+++ b/src/core/cpuinfo.cc
df7b7f
@@ -136,7 +136,7 @@ string value)
df7b7f
       cpu->claim(true);
df7b7f
       cpu->setVendor(s390x_vendor);
df7b7f
 
df7b7f
-      for(int i=0; i < s390x_features.size(); i++)
df7b7f
+      for(size_t i=0; i < s390x_features.size(); i++)
df7b7f
         cpu->addCapability(s390x_features[i]);
df7b7f
       /* many thanks to Martin Schwidefsky for communicating the descriptions
df7b7f
          of the feature flags
df7b7f
@@ -258,7 +258,7 @@ static void cpuinfo_aarch64(hwNode & node,
df7b7f
               if (node.getDescription() == "")
df7b7f
                 node.setDescription(aarch64_processor_name);
df7b7f
               cpu->claim(true);
df7b7f
-              for(int i=0; i < aarch64_features.size(); i++)
df7b7f
+              for(size_t i=0; i < aarch64_features.size(); i++)
df7b7f
                 {
df7b7f
                   cpu->addCapability(aarch64_features[i]);
df7b7f
                   cpu->describeCapability("fp", "Floating point instructions");
df7b7f
@@ -279,8 +279,6 @@ static void cpuinfo_ia64(hwNode & node,
df7b7f
 string id,
df7b7f
 string value)
df7b7f
 {
df7b7f
-  unsigned long long frequency = 0;
df7b7f
-  int i;
df7b7f
 
df7b7f
   if (id == "processor")
df7b7f
     currentcpu++;
df7b7f
-- 
df7b7f
2.14.1
df7b7f