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.

39 lines
1.2 KiB

  1. From e9261081d447492e7eff3a22601b1de4f1ae550f Mon Sep 17 00:00:00 2001
  2. From: remi <remi@c90b9560-bf6c-de11-be94-00142212c4b1>
  3. Date: Wed, 9 Oct 2013 12:15:51 +0000
  4. Subject: [PATCH 02/16] fix [-Wunused-variable]
  5. git-svn-id: http://svn.php.net/repository/pecl/dio/trunk@331749 c90b9560-bf6c-de11-be94-00142212c4b1
  6. ---
  7. dio.c | 2 +-
  8. dio_posix.c | 1 -
  9. 2 files changed, 1 insertion(+), 2 deletions(-)
  10. diff --git a/dio.c b/dio.c
  11. index e400cf0..408a171 100644
  12. --- a/dio.c
  13. +++ b/dio.c
  14. @@ -775,7 +775,7 @@ ZEND_BEGIN_ARG_INFO_EX(dio_serial_args, 0, 0, 2)
  15. ZEND_ARG_INFO(0, options)
  16. ZEND_END_ARG_INFO()
  17. -static zend_object_handlers dio_raw_object_handlers;
  18. +// not used static zend_object_handlers dio_raw_object_handlers;
  19. static zend_function_entry dio_functions[] = {
  20. /* Class functions. */
  21. diff --git a/dio_posix.c b/dio_posix.c
  22. index 16fb3d6..01e1109 100644
  23. --- a/dio_posix.c
  24. +++ b/dio_posix.c
  25. @@ -266,7 +266,6 @@ size_t dio_common_write(php_dio_stream_data *data, const char *buf, size_t count
  26. * earlier than early time.
  27. */
  28. static int dio_timeval_subtract(struct timeval *late, struct timeval *early, struct timeval *diff) {
  29. - struct timeval *tmp;
  30. /* Handle negatives */
  31. if (late->tv_sec < early->tv_sec) {
  32. --
  33. 2.5.0