aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/x86
diff options
context:
space:
mode:
Diffstat (limited to 'modules/devices/x86')
-rw-r--r--modules/devices/x86/processor.c17
-rw-r--r--modules/devices/x86/x86_data.c2
2 files changed, 9 insertions, 10 deletions
diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c
index 4141f051..42f0661a 100644
--- a/modules/devices/x86/processor.c
+++ b/modules/devices/x86/processor.c
@@ -166,11 +166,11 @@ static gchar *__cache_get_info_as_string(Processor *processor)
/* This is not used directly, but creates translatable strings for
* the type string returned from /sys/.../cache */
-static const char* cache_types[] = {
- NC_("cache-type", /*/cache type, as appears in: Level 1 (Data)*/ "Data"),
- NC_("cache-type", /*/cache type, as appears in: Level 1 (Instruction)*/ "Instruction"),
- NC_("cache-type", /*/cache type, as appears in: Level 2 (Unified)*/ "Unified")
-};
+//static const char* cache_types[] = {
+// NC_("cache-type", /*/cache type, as appears in: Level 1 (Data)*/ "Data"),
+// NC_("cache-type", /*/cache type, as appears in: Level 1 (Instruction)*/ "Instruction"),
+// NC_("cache-type", /*/cache type, as appears in: Level 2 (Unified)*/ "Unified")
+//};
static void __cache_obtain_info(Processor *processor)
{
@@ -257,7 +257,6 @@ static gint cmp_cpufreq_data(cpufreq_data *a, cpufreq_data *b) {
}
static gint cmp_cpufreq_data_ignore_affected(cpufreq_data *a, cpufreq_data *b) {
- gint i = 0;
cmp_clocks_test(cpukhz_max);
cmp_clocks_test(cpukhz_min);
return 0;
@@ -267,10 +266,10 @@ gchar *clocks_summary(GSList * processors)
{
gchar *ret = g_strdup_printf("[%s]\n", _("Clocks"));
GSList *all_clocks = NULL, *uniq_clocks = NULL;
- GSList *tmp, *l;
+ GSList *l;
Processor *p;
cpufreq_data *c, *cur = NULL;
- gint cur_count = 0, i = 0;
+ gint cur_count = 0;
/* create list of all clock references */
for (l = processors; l; l = l->next) {
@@ -369,7 +368,7 @@ gchar *caches_summary(GSList * processors)
GSList *tmp, *l;
Processor *p;
ProcessorCache *c, *cur = NULL;
- gint cur_count = 0, i = 0;
+ gint cur_count = 0;
/* create list of all cache references */
for (l = processors; l; l = l->next) {
diff --git a/modules/devices/x86/x86_data.c b/modules/devices/x86/x86_data.c
index a2f8d7ca..837985e2 100644
--- a/modules/devices/x86/x86_data.c
+++ b/modules/devices/x86/x86_data.c
@@ -308,7 +308,7 @@ static const struct flag_to_meaning builtin_tab_flag_meaning[] = {
static struct flag_to_meaning *tab_flag_meaning;
-static char all_flags[4096] = "";
+//static char all_flags[4096] = "";
static void build_meaning_table_iter(JsonObject *object,
const gchar *member_name,