소스 검색

Mark fallthroughs as explicit in charset.c

Allows code to compile with LLVM's `-Wimplicit-fallthrough`.
pull/81/head
Richard Barnes GitHub 6 달 전
부모
커밋
6456ce9b09
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      caca/charset.c

+ 2
- 2
caca/charset.c 파일 보기

@@ -169,8 +169,8 @@ size_t caca_utf32_to_utf8(char *buf, uint32_t ch)

switch(bytes)
{
case 4: *--parser = (ch | 0x80) & 0xbf; ch >>= 6;
case 3: *--parser = (ch | 0x80) & 0xbf; ch >>= 6;
case 4: *--parser = (ch | 0x80) & 0xbf; ch >>= 6; __attribute__((fallthrough));
case 3: *--parser = (ch | 0x80) & 0xbf; ch >>= 6; __attribute__((fallthrough));
case 2: *--parser = (ch | 0x80) & 0xbf; ch >>= 6;
}
*--parser = ch | mark[bytes];


불러오는 중...
취소
저장