Skip to content

Commit 0c31123

Browse files
authored
[libc] Fix erroneous warning on GCC (llvm#101520)
1 parent a5e67fb commit 0c31123

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libc/src/stdio/printf_core/writer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ struct WriteBuffer {
100100
case WriteMode::RESIZE_AND_FILL_BUFF:
101101
return resize_and_write(new_str);
102102
}
103+
__builtin_unreachable();
103104
}
104105
};
105106

0 commit comments

Comments
 (0)