Project

General

Profile

Actions

Bug #8829

closed

librdc: variable 'trc' 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-20
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Debug build error from gcc 6:

    ../common/rdcconfig.c:638:6: error: variable 'trc' set but not used [-Werror=unused-but-set-variable]
      int trc;
          ^~~
    ../common/rdcconfig.c: In function 'rdc_fsync':
    ../common/rdcconfig.c:682:6: error: variable 'trc' set but not used [-Werror=unused-but-set-variable]
      int trc;
          ^~~
    ../common/rdcconfig.c: In function 'rdc_rsync':
    ../common/rdcconfig.c:731:6: error: variable 'trc' set but not used [-Werror=unused-but-set-variable]
      int trc;
          ^~~
    ../common/rdcconfig.c: In function 'rdc_ursync':
    ../common/rdcconfig.c:791:6: error: variable 'trc' set but not used [-Werror=unused-but-set-variable]
      int trc;
          ^~~
    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 c532a89174aae7a12b4a8cef1517e723d26ff477

commit  c532a89174aae7a12b4a8cef1517e723d26ff477
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-27T16:03:25.000Z

    8829 librdc: variable 'trc' set but not used
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF