···33273327 * next update. If not, we try and create a regular symref.
33283328 */
33293329 if (update->new_target && refs->prefer_symlink_refs)
33303330- if (!create_ref_symlink(lock, update->new_target))
33303330+ /*
33313331+ * By using the `NOT_CONSTANT()` trick, we can avoid
33323332+ * errors by `clang`'s `-Wunreachable` logic that would
33333333+ * report that the `continue` statement is not reachable
33343334+ * when `NO_SYMLINK_HEAD` is `#define`d.
33353335+ */
33363336+ if (NOT_CONSTANT(!create_ref_symlink(lock, update->new_target)))
33313337 continue;
3332333833333339 if (update->flags & REF_NEEDS_COMMIT) {