Project

General

Profile

Bug #12404

audioemu10k: 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/audioemu10k/audioemu10k.c: In function 'emu10k_reset_rec':
    ../../common/io/audio/drv/audioemu10k/audioemu10k.c:832:2: error: 'sz' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      832 |  emu10k_write_reg(devc, ADCBS, 0, sz);
          |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

Also available in: Atom PDF