You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
797 B

  1. --- a/bindings/lua/luars232.c
  2. +++ b/bindings/lua/luars232.c
  3. @@ -529,7 +529,7 @@ static void create_metatables(lua_State *L, const char *name, const luaL_reg *me
  4. #endif
  5. }
  6. -RS232_LIB int luaopen_luars232(lua_State *L)
  7. +RS232_LIB static int luaopen_luars232(lua_State *L)
  8. {
  9. int i;
  10. create_metatables(L, MODULE_NAMESPACE, port_methods);
  11. @@ -560,6 +560,7 @@ RS232_LIB int luaopen_luars232(lua_State *L)
  12. return 1;
  13. }
  14. -RS232_LIB int luaopen_rs232_core(lua_State *L){
  15. +__attribute__((unused))
  16. +RS232_LIB static int luaopen_rs232_core(lua_State *L){
  17. return luaopen_luars232(L);
  18. }
  19. --- a/include/librs232/rs232.h
  20. +++ b/include/librs232/rs232.h
  21. @@ -134,7 +134,7 @@ enum rs232_flow_e {
  22. enum rs232_status_e {
  23. RS232_PORT_CLOSED,
  24. - RS232_PORT_OPEN,
  25. + RS232_PORT_OPEN
  26. };
  27. enum rs232_dtr_e {