[DynInst_API:] [dyninst/dyninst] a70c75: warning fix: false positive maybe uninitialized


Date: Tue, 10 Oct 2023 07:45:51 -0700
From: kupsch <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] a70c75: warning fix: false positive maybe uninitialized
  Branch: refs/heads/kupsch/false_warning_fix_maybe_uninitialized
  Home:   https://github.com/dyninst/dyninst
  Commit: a70c75a877f42063b58003bf88daa50c6522825e
      https://github.com/dyninst/dyninst/commit/a70c75a877f42063b58003bf88daa50c6522825e
  Author: James A. 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

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] a70c75: warning fix: false positive maybe uninitialized, kupsch <=