[DynInst_API:] [dyninst/dyninst] 914fac: warning fix: false positive maybe uninitialized (...


Date: Tue, 10 Oct 2023 11:02:18 -0700
From: kupsch <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 914fac: warning fix: false positive maybe uninitialized (...
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: 914fac284c7a951ed3b6439a4acea51a1805d498
      https://github.com/dyninst/dyninst/commit/914fac284c7a951ed3b6439a4acea51a1805d498
  Author: kupsch <kupsch@xxxxxxxxxxx>
  Date:   2023-10-10 (Tue, 10 Oct 2023)

  Changed paths:
    M common/h/compiler_diagnostics.h
    M symtabAPI/src/dwarfWalker.C

  Log Message:
  -----------
  warning fix:  false positive maybe uninitialized (#1570)

gcc 12 reports a diagnostic for a maybe uninitialized value when
boost::option::value_or is called on an optional that has no
value, even though this is safe

- add a diagnostic suppression macro for this warning and use it
  to suppress the warning


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 914fac: warning fix: false positive maybe uninitialized (..., kupsch <=