Project

General

Profile

Bug #12402

audiocmihd: variable may be used uninitialized

Added by Toomas Soome 10 months ago. Updated 10 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

Also available in: Atom PDF