Project

General

Profile

Actions

Bug #8737

closed

vi: 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:

ex_vmain.c: In function 'vmain':
ex_vmain.c:620:19: error: variable 'tmp1' set but not used [-Werror=unused-but-set-variable]
     unsigned char tmp1;
                   ^~~~
ex_vmain.c:617:19: error: variable 'n' set but not used [-Werror=unused-but-set-variable]
     int tmp, len, n;
                   ^
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 cebd8f5216039c4a8d4553a19d3e8e4ff25ab941

commit  cebd8f5216039c4a8d4553a19d3e8e4ff25ab941
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-10T15:46:45.000Z

    8737 vi: variable set but not used
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF