[DynInst_API:] [dyninst/dyninst] cf3a2a: fix warnings in MINSIZEREL build types


Date: Fri, 25 Mar 2022 12:21:06 -0700
From: kupsch <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] cf3a2a: fix warnings in MINSIZEREL build types
  Branch: refs/heads/kupsch/fix-warnings-MINSIZEREL
  Home:   https://github.com/dyninst/dyninst
  Commit: cf3a2a0130b0a01ab9f3d9a6b0ce60214750c36c
      https://github.com/dyninst/dyninst/commit/cf3a2a0130b0a01ab9f3d9a6b0ce60214750c36c
  Author: James A. Kupsch <kupsch@xxxxxxxxxxx>
  Date:   2022-03-25 (Fri, 25 Mar 2022)

  Changed paths:
    M cmake/optimization.cmake

  Log Message:
  -----------
  fix warnings in MINSIZEREL build types

- 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 it 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] cf3a2a: fix warnings in MINSIZEREL build types, kupsch <=