libhangul / libhangul

A library to support hangul input method logic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Header causes build errors when compiled with -Wpedantic

emersion opened this issue · comments

In file included from ../include/wlhangul.h:4,
                 from ../main.c:5:
/usr/include/hangul-1.0/hangul.h:176:46: error: ISO C does not allow extra ‘;’ outside of a function [-Werror=pedantic]
  176 |  int key, ucschar value) LIBHANGUL_DEPRECATED;
      |                                              ^
/usr/include/hangul-1.0/hangul.h:178:60: error: ISO C does not allow extra ‘;’ outside of a function [-Werror=pedantic]
  178 |  const HangulCombination *combination) LIBHANGUL_DEPRECATED;
      |                                                            ^
/usr/include/hangul-1.0/hangul.h:180:61: error: ISO C does not allow extra ‘;’ outside of a function [-Werror=pedantic]
  180 | unsigned    hangul_ic_get_n_keyboards() LIBHANGUL_DEPRECATED;
      |                                                             ^
/usr/include/hangul-1.0/hangul.h:181:76: error: ISO C does not allow extra ‘;’ outside of a function [-Werror=pedantic]
  181 | const char* hangul_ic_get_keyboard_id(unsigned index_) LIBHANGUL_DEPRECATED;
      |                                                                            ^
/usr/include/hangul-1.0/hangul.h:182:78: error: ISO C does not allow extra ‘;’ outside of a function [-Werror=pedantic]
  182 | const char* hangul_ic_get_keyboard_name(unsigned index_) LIBHANGUL_DEPRECATED;
      |                                                                              ^