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


Date: Tue, 10 Oct 2023 07:53:48 -0700
From: kupsch <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 015d8a: warning fix: false positive maybe uninitialized
  Branch: refs/heads/kupsch/false_warning_fix_maybe_uninitialized
  Home:   https://github.com/dyninst/dyninst
  Commit: 015d8a1f10346979df71e0376a4417908e9776b3
      https://github.com/dyninst/dyninst/commit/015d8a1f10346979df71e0376a4417908e9776b3
  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] 015d8a: warning fix: false positive maybe uninitialized, kupsch <=