Project

General

Profile

Bug #12402

audiocmihd: variable may be used uninitialized

Added by Toomas Soome 9 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

100%

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

Description

Build errors with gcc 9:

    ../../common/io/audio/drv/audiocmihd/audiocmihd.c: In function 'cmediahd_reset_port':
    ../../common/io/audio/drv/audiocmihd/audiocmihd.c:677:6: error: 'channels' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      677 |  int channels;
          |      ^~~~~~~~
    cc1: all warnings being treated as errors

Testing done: build/install/boot

#1

Updated by Toomas Soome 8 months ago

  • Description updated (diff)
#2

Updated by Electric Monk 8 months ago

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

git commit 86e38daa32bf0ca85f79384da2d3e43bf87f328b

commit  86e38daa32bf0ca85f79384da2d3e43bf87f328b
Author: Toomas Soome <tsoome@me.com>
Date:   2020-04-01T15:43:37.000Z

    12402 audiocmihd: variable may be used uninitialized
    Reviewed by: Yuri Pankov <ypankov@fastmail.com>
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF