Project

General

Profile

Actions

Bug #8839

closed

madv: error: variable 'rc' set but not used

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2017-11-21
Due date:
% Done:

100%

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

Description

Debug build error from gcc 6:

    ../common/madv.c: In function 'shmat':
    ../common/madv.c:681:6: error: variable 'rc' set but not used [-Werror=unused-but-set-variable]
      int rc;
          ^~
    ../common/madv.c: In function 'mmap':
    ../common/madv.c:734:6: error: variable 'rc' set but not used [-Werror=unused-but-set-variable]
      int rc;
          ^~
    ../common/madv.c: In function 'mmap64':
    ../common/madv.c:786:6: error: variable 'rc' set but not used [-Werror=unused-but-set-variable]
      int rc;
          ^~
    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 e34d2eb7802a6af2e2219818b08b2c2ac88a1c81

commit  e34d2eb7802a6af2e2219818b08b2c2ac88a1c81
Author: Toomas Soome <tsoome@me.com>
Date:   2017-12-04T17:04:49.000Z

    8839 madv: error: variable 'rc' set but not used
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF