Project

General

Profile

Bug #9382

libmvect: error: 'x0' may be used uninitialized

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2018-03-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

issue found by gcc 7 build:

    ../common/__vcos.c: In function '__vcos':
    ../common/__vcos.c:620:18: error: 'x0' may be used uninitialized in this function [-Werror=maybe-uninitialized]
       n0 = (int) (x0 * invpio2 + half[xsb0]);
                   ~~~^~~~~~~~~
    cc1: all warnings being treated as errors
    ../common/__vsin.c: In function '__vsin':
    ../common/__vsin.c:628:18: error: 'x0' may be used uninitialized in this function [-Werror=maybe-uninitialized]
       n0 = (int) (x0 * invpio2 + half[xsb0]);
                   ~~~^~~~~~~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk over 1 year ago

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

git commit 8b8bfb2aded317f67d8aedbe4a6972c3a791418b

commit  8b8bfb2aded317f67d8aedbe4a6972c3a791418b
Author: Toomas Soome <tsoome@me.com>
Date:   2018-04-06T19:45:04.000Z

    9382 libmvect: error: 'x0' may be used uninitialized
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF