[0/3] tools/power/x86: Enable and fix more warnings
mbox series

Message ID 20180916150504.GB4765@decadent.org.uk
Headers show
Series
  • tools/power/x86: Enable and fix more warnings
Related show

Message

Ben Hutchings Sept. 16, 2018, 3:05 p.m. UTC
This series enables optimisations and Fortify for turbostat and
x86_energy_policy, and fixes the warnings that this produces
(with gcc 8, at least).

Ben.

Ben Hutchings (3):
  tools: x86_energy_perf_policy: Fix "uninitialized variable" warnings
    at -O2
  tools: turbostat: Add checks for failure of fgets() and fscanf()
  tools/power/x86: Enable compiler optimisations and Fortify by default

 tools/power/x86/turbostat/Makefile            |  3 +-
 tools/power/x86/turbostat/turbostat.c         | 28 ++++++++++++-------
 .../power/x86/x86_energy_perf_policy/Makefile |  3 +-
 .../x86_energy_perf_policy.c                  | 26 +++++++++--------
 4 files changed, 37 insertions(+), 23 deletions(-)