···3291 * next update. If not, we try and create a regular symref.
3292 */
3293 if (update->new_target && refs->prefer_symlink_refs)
3294- if (!create_ref_symlink(lock, update->new_target))
0000003295 continue;
32963297 if (update->flags & REF_NEEDS_COMMIT) {
···3291 * next update. If not, we try and create a regular symref.
3292 */
3293 if (update->new_target && refs->prefer_symlink_refs)
3294+ /*
3295+ * By using the `NOT_CONSTANT()` trick, we can avoid
3296+ * errors by `clang`'s `-Wunreachable` logic that would
3297+ * report that the `continue` statement is not reachable
3298+ * when `NO_SYMLINK_HEAD` is `#define`d.
3299+ */
3300+ if (NOT_CONSTANT(!create_ref_symlink(lock, update->new_target)))
3301 continue;
33023303 if (update->flags & REF_NEEDS_COMMIT) {