Project

General

Profile

Actions

Bug #8724

closed

libc: multiple variable set but not used errors

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Debug mode build errors with gcc 6:

../port/fp/_base_sup.c:59:18: error: variable 'tstored' set but not used [-Werror=unused-but-set-variable]
  volatile double tstored;
                  ^~~~~~~

../port/print/doprnt.c: In function '_wndoprnt':
../port/print/doprnt.c:463:10: error: variable 'sec_display' set but not used [-Werror=unused-but-set-variable]
  ssize_t sec_display;
          ^~~~~~~~~~~
../port/print/doprnt.c:452:8: error: variable 'cp' set but not used [-Werror=unused-but-set-variable]
  char *cp;
        ^~

In file included from ../port/regex/regexec.c:123:0:
../port/regex/engine.c: In function 'sdissect':
../port/regex/engine.c:385:14: error: variable 'dp' set but not used [-Werror=unused-but-set-variable]
  const char *dp;
              ^~

just silence those.

Actions #1

Updated by Electric Monk over 4 years ago

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

git commit 9c3b8506879f8963287c430f2eb2e74c554a1c54

commit  9c3b8506879f8963287c430f2eb2e74c554a1c54
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-16T20:27:43.000Z

    8724 libc: multiple variable set but not used errors
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF