Project

General

Profile

Actions

Bug #8736

closed

amt: variable set but not used

Added by Toomas Soome almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2017-10-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Debug build error with gcc 6:

    ../amt.c: In function 'probe_data_area':
    ../amt.c:237:15: error: variable 'p1' set but not used [-Werror=unused-but-set-variable]
      volatile int p1;
                   ^~
    ../amt.c: In function 'probe_hole':
    ../amt.c:661:25: error: variable 'probe' set but not used [-Werror=unused-but-set-variable]
      volatile unsigned char probe;
                             ^~~~~
    cc1: all warnings being treated as errors
Actions #1

Updated by Electric Monk almost 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit f667abe5ff605062ba1d9222a7ff814d54b420d8

commit  f667abe5ff605062ba1d9222a7ff814d54b420d8
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-10T15:48:02.000Z

    8736 amt: variable set but not used
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF