Merge pull request #3655 from onikitenko/vsftpd-fix
[feed/packages.git] / lang / php7-pecl-dio / patches / 0002-fix-Wunused-variable.patch
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
6 git-svn-id: http://svn.php.net/repository/pecl/dio/trunk@331749 c90b9560-bf6c-de11-be94-00142212c4b1
7 ---
8 dio.c | 2 +-
9 dio_posix.c | 1 -
10 2 files changed, 1 insertion(+), 2 deletions(-)
11
12 diff --git a/dio.c b/dio.c
13 index e400cf0..408a171 100644
14 --- a/dio.c
15 +++ b/dio.c
16 @@ -775,7 +775,7 @@ ZEND_BEGIN_ARG_INFO_EX(dio_serial_args, 0, 0, 2)
17 ZEND_ARG_INFO(0, options)
18 ZEND_END_ARG_INFO()
19
20 -static zend_object_handlers dio_raw_object_handlers;
21 +// not used static zend_object_handlers dio_raw_object_handlers;
22
23 static zend_function_entry dio_functions[] = {
24 /* Class functions. */
25 diff --git a/dio_posix.c b/dio_posix.c
26 index 16fb3d6..01e1109 100644
27 --- a/dio_posix.c
28 +++ b/dio_posix.c
29 @@ -266,7 +266,6 @@ size_t dio_common_write(php_dio_stream_data *data, const char *buf, size_t count
30 * earlier than early time.
31 */
32 static int dio_timeval_subtract(struct timeval *late, struct timeval *early, struct timeval *diff) {
33 - struct timeval *tmp;
34
35 /* Handle negatives */
36 if (late->tv_sec < early->tv_sec) {
37 --
38 2.5.0
39