Project

General

Profile

Actions

Bug #14499

closed

i86xpv/unix: variable 'val' is uninitialized

Added by Toomas Soome 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
Due date:
% Done:

100%

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

Description

Build error:

    ../../i86pc/os/cpuid.c:4318:9: error: variable 'val' is uninitialized when used here [-Werror,-Wuninitialized]
                            if ((val & AMD_DE_CFG_LFENCE_DISPATCH) != 0) {
                                 ^~~
    ../../i86pc/os/cpuid.c:4297:16: note: initialize the variable 'val' to silence this warning
                            uint64_t val;
                                        ^
                                         = 0
    1 error generated.

Testing done: build.

Actions #1

Updated by Electric Monk 8 months ago

  • Gerrit CR set to 2018
Actions #2

Updated by Toomas Soome 8 months ago

  • Description updated (diff)
Actions #3

Updated by Electric Monk 8 months ago

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

git commit 6ce41887bdf3c5c43465fd94dffe1b4acd302afe

commit  6ce41887bdf3c5c43465fd94dffe1b4acd302afe
Author: Toomas Soome <tsoome@me.com>
Date:   2022-02-15T20:34:55.000Z

    14499 i86xpv/unix: variable 'val' is uninitialized
    Reviewed by: Jason King <jason.brian.king@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF