Project

General

Profile

Bug #12408

audiosolo: variable may be used uninitialized

Added by Toomas Soome 2 months ago.

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

90%

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

Description

Build errors with gcc 9:

    ../../common/io/audio/drv/audiosolo/audiosolo.c: In function 'solo_alloc_ctrl':
    ../../common/io/audio/drv/audiosolo/audiosolo.c:693:13: error: 'fn' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      693 |  pc->ctrl = audio_dev_add_control(dev->adev, &desc,
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      694 |      solo_get_value, fn, pc);
          |      ~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

Also available in: Atom PDF