Skip to content

Commit

Permalink
fix GUI build
Browse files Browse the repository at this point in the history
  • Loading branch information
afontenot committed Apr 10, 2018
1 parent 14668f8 commit dfbcd77
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/GUI/i7z_GUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
#ifndef UINT32_MAX
# define UINT32_MAX (4294967295U)
#endif
extern "C" {
#include "../helper_functions.c"
}

#define MAX_PROCESSORS_GUI 12

Expand Down
5 changes: 2 additions & 3 deletions src/GUI/i7z_GUI.pro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ INCLUDEPATH += .
CONFIG += debug
CFLAGS += #QMAKE_*FLAGS are where the gcc flags should be passed
CXXFLAGS +=
QMAKE_CFLAGS += -v -fno-schedule-insns2 -fno-schedule-insns -fno-inline-small-functions -fno-caller-saves
QMAKE_CXXFLAGS += -v -fno-schedule-insns2 -fno-schedule-insns -fno-inline-small-functions -fno-caller-saves
# Input
SOURCES += i7z_GUI.cpp
SOURCES += i7z_GUI.cpp ../log.c
LIBS += -lncurses
6 changes: 2 additions & 4 deletions src/helper_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#include <ncurses.h>
#include "i7z.h"

#define quiet false

extern struct program_options prog_options;
bool E7_mp_present=false;

Expand Down Expand Up @@ -318,8 +316,8 @@ void Print_Information_Processor(bool* nehalem, bool* sandy_bridge, bool* ivy_br
get_familyinformation (&proc_info);
print_family_info (&proc_info);

debug(quiet, "msr = Model Specific Register");
print_model(quiet, proc_info.model, proc_info.extended_model);
debug(prog_options.quiet, "msr = Model Specific Register");
print_model(prog_options.quiet, proc_info.model, proc_info.extended_model);
if (proc_info.family >= 0x6) {
if (proc_info.extended_model >= 0x3) {
if (proc_info.model == 0xA) {
Expand Down

0 comments on commit dfbcd77

Please sign in to comment.