]> granicus.if.org Git - graphviz/commit
swap assertion in agdelrec for a call to UNREACHABLE
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 20 Jun 2021 21:16:24 +0000 (14:16 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 16:42:17 +0000 (09:42 -0700)
commit4641ef43544dd6431d9f1f5e640d13eb7e92952d
tree57001d99ef174c7b9311d407576bf1547c2cc980
parent26b1e49ee35c0656c092ac2c7fa7dd0d2c8df5cf
swap assertion in agdelrec for a call to UNREACHABLE

This removes some -Wstring-conversion warnings when building with Clang, due to
the expression `!"unreachable"`. It also teaches the compiler it can more
aggressively optimize this switch.
lib/cgraph/rec.c