Project

General

Profile

Bug #12404

audioemu10k: 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/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

#1

Updated by Electric Monk 8 months ago

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

git commit 8c16a0e6d0b3d6a8b804825076383c61979302ec

commit  8c16a0e6d0b3d6a8b804825076383c61979302ec
Author: Toomas Soome <tsoome@me.com>
Date:   2020-03-28T18:55:12.000Z

    12404 audioemu10k: variable may be used uninitialized
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Reviewed by: Yuri Pankov <ypankov@fastmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF