[DynInst_API:] [dyninst/dyninst] 474ab1: Fix warnings with cmake's MINSIZEREL build type (#...


Date: Sun, 27 Mar 2022 11:56:39 -0700
From: kupsch <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 474ab1: Fix warnings with cmake's MINSIZEREL build type (#...
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: 474ab1e480147fc2583e192e77a2a7526b88514f
      https://github.com/dyninst/dyninst/commit/474ab1e480147fc2583e192e77a2a7526b88514f
  Author: kupsch <kupsch@xxxxxxxxxxx>
  Date:   2022-03-27 (Sun, 27 Mar 2022)

  Changed paths:
    M cmake/optimization.cmake

  Log Message:
  -----------
  Fix warnings with cmake's MINSIZEREL build type (#1235)

- Explicitly define optimization flags for cmake's MINSIZEREL build
  type.  Cmake by default includes -DNDEBUG.  This results in assert
  being defined to do nothing.  Dyninst use asserts as a fatal error
  reporting mechanism and expects assert to not return if the condition
  is always false.  If assert can return then many warnings are
  produced due to this unexpect path.
- Remove defining NDEBUG for REL build types if using the MSC compiler


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 474ab1: Fix warnings with cmake's MINSIZEREL build type (#..., kupsch <=