···32913291 * next update. If not, we try and create a regular symref.
32923292 */
32933293 if (update->new_target && refs->prefer_symlink_refs)
32943294- if (!create_ref_symlink(lock, update->new_target))
32943294+ /*
32953295+ * By using the `NOT_CONSTANT()` trick, we can avoid
32963296+ * errors by `clang`'s `-Wunreachable` logic that would
32973297+ * report that the `continue` statement is not reachable
32983298+ * when `NO_SYMLINK_HEAD` is `#define`d.
32993299+ */
33003300+ if (NOT_CONSTANT(!create_ref_symlink(lock, update->new_target)))
32953301 continue;
3296330232973303 if (update->flags & REF_NEEDS_COMMIT) {