configure.ac: build with `-DFMT_EXCEPTIONS=0`
Coverity flags some functions marked `noexcept` that call `fmt::format`,
since `fmt::format` can throw `fmt::format_error` exceptions. We're not
interested in handling format errors at runtime, we'd rather just get a
crash and fix it. Build the entire project (including `libfmt.la`) with
`-DFMT_EXCEPTIONS=0` to make {fmt} crash instead of throw, should a
format error occur.
Tested by introducing a format error somewhere and running to it. The
result is very pretty:
$ tests/plugins/flt.utils.muxer/test-clock-compatibility
1..150
/home/smarchi/src/babeltrace/src/cpp-common/vendor/fmt/format-inl.h:40: assertion failed: invalid format stringterminate called without an active exception
[1]
1189949 IOT instruction tests/plugins/flt.utils.muxer/test-clock-compatibility
Change-Id: Ibcb0104a6bf644b025112d0b35e4fbe622c20be9
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12194
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>