Project

General

Profile

Actions

Bug #9756

closed

tests: badseg.c error: variable 'rc' set but not used

Added by Toomas Soome almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2018-08-18
Due date:
% Done:

100%

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

Description

debug build with gcc 7 did reveal:

    badseg.c: In function 'resetseg':
    badseg.c:62:6: error: variable 'rc' set but not used [-Werror=unused-but-set-variable]
      int rc = getcontext(&ucp);
          ^~
    cc1: all warnings being treated as errors
Actions #1

Updated by Electric Monk over 3 years ago

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

git commit ba93fbafc5df33b7aeb99adb3b9a918afc3e7143

commit  ba93fbafc5df33b7aeb99adb3b9a918afc3e7143
Author: Toomas Soome <tsoome@me.com>
Date:   2018-08-28T15:14:00.000Z

    9756 tests: badseg.c error: variable 'rc' set but not used
    Reviewed by: John Levon <john.levon@joyent.com>
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Approved by: Robert Mustacchi <rm@joyent.com>

Actions

Also available in: Atom PDF