Project

General

Profile

Actions

Bug #12402

closed

audiocmihd: variable may be used uninitialized

Added by Toomas Soome over 2 years ago. Updated over 2 years 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

Actions #1

Updated by Toomas Soome over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Electric Monk over 2 years 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>

Actions

Also available in: Atom PDF