Guest User

Untitled

a guest
Jul 3rd, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. hal/user_comps/mb2hal/mb2hal.c: In function ‘get_tx_connection’:
  2. hal/user_comps/mb2hal/mb2hal.c:362:55: warning: passing argument 2 of ‘modbus_set_response_timeout’ makes integer from pointer without a cast [-Wint-conversion]
  3. modbus_set_response_timeout(this_mb_link->modbus, &timeout);
  4. ^
  5. In file included from hal/user_comps/mb2hal/mb2hal.h:18:0,
  6. from hal/user_comps/mb2hal/mb2hal.c:27:
  7. /usr/include/modbus/modbus.h:188:16: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘struct timeval *’
  8. MODBUS_API int modbus_set_response_timeout(modbus_t *ctx, uint32_t to_sec, uint32_t to_usec);
  9. ^
  10. hal/user_comps/mb2hal/mb2hal.c:362:5: error: too few arguments to function ‘modbus_set_response_timeout’
  11. modbus_set_response_timeout(this_mb_link->modbus, &timeout);
  12. ^
  13. In file included from hal/user_comps/mb2hal/mb2hal.h:18:0,
  14. from hal/user_comps/mb2hal/mb2hal.c:27:
  15. /usr/include/modbus/modbus.h:188:16: note: declared here
  16. MODBUS_API int modbus_set_response_timeout(modbus_t *ctx, uint32_t to_sec, uint32_t to_usec);
  17. ^
  18. hal/user_comps/mb2hal/mb2hal.c:369:51: warning: passing argument 2 of ‘modbus_set_byte_timeout’ makes integer from pointer without a cast [-Wint-conversion]
  19. modbus_set_byte_timeout(this_mb_link->modbus, &timeout);
  20. ^
  21. In file included from hal/user_comps/mb2hal/mb2hal.h:18:0,
  22. from hal/user_comps/mb2hal/mb2hal.c:27:
  23. /usr/include/modbus/modbus.h:191:16: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘struct timeval *’
  24. MODBUS_API int modbus_set_byte_timeout(modbus_t *ctx, uint32_t to_sec, uint32_t to_usec);
  25. ^
  26. hal/user_comps/mb2hal/mb2hal.c:369:5: error: too few arguments to function ‘modbus_set_byte_timeout’
  27. modbus_set_byte_timeout(this_mb_link->modbus, &timeout);
  28. ^
  29. In file included from hal/user_comps/mb2hal/mb2hal.h:18:0,
  30. from hal/user_comps/mb2hal/mb2hal.c:27:
  31. /usr/include/modbus/modbus.h:191:16: note: declared here
  32. MODBUS_API int modbus_set_byte_timeout(modbus_t *ctx, uint32_t to_sec, uint32_t to_usec);
  33. ^
  34. make: *** [Makefile:207: objects/hal/user_comps/mb2hal/mb2hal.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment