]> granicus.if.org Git - graphviz/commit
swap assertion in setattr for a call to UNREACHABLE
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 20 Jun 2021 21:11:33 +0000 (14:11 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 16:42:17 +0000 (09:42 -0700)
commit26b1e49ee35c0656c092ac2c7fa7dd0d2c8df5cf
tree78961ac32bdbb0abec5badc7dc5a314122d3e205
parent0a1324f28dc0250c75cd4ea82b5bd56d04ef68d3
swap assertion in setattr 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/attr.c