com php-src: Remove compile warning: variable ‘streamp ’ set but not used [-Wunused-but-set-variab le]: ext/bz2/bz2_filter.c
| From: | Christopher Jones | Date: | Tue, 20 Aug 2013 00:46:50 +0000 |
| Subject: | com php-src: Remove compile warning: variable ‘streamp ’ set but not used [-Wunused-but-set-variab le]: ext/bz2/bz2_filter.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73008@lists.php.net to get a copy of this message | ||
Commit: f69a5c520fd699a32d0787dc04984313b2b677ff
Author: Christopher Jones <sixd@php.net> Mon, 19 Aug 2013 17:46:50 -0700
Parents: cf7f50748a787affd9306b34ee1ba2c83772aedc
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f69a5c520fd699a32d0787dc04984313b2b677ff
Log:
Remove compile warning: variable ‘streamp’ set but not used [-Wunused-but-set-variable]
Changed paths:
M ext/bz2/bz2_filter.c
Diff:
diff --git a/ext/bz2/bz2_filter.c b/ext/bz2/bz2_filter.c
index 5ed7921..3356002 100644
--- a/ext/bz2/bz2_filter.c
+++ b/ext/bz2/bz2_filter.c
@@ -215,7 +215,6 @@ static php_stream_filter_status_t php_bz2_compress_filter(
size_t consumed = 0;
int status;
php_stream_filter_status_t exit_status = PSFS_FEED_ME;
- bz_stream *streamp;
if (!thisfilter || !thisfilter->abstract) {
/* Should never happen */
@@ -223,7 +222,6 @@ static php_stream_filter_status_t php_bz2_compress_filter(
}
data = (php_bz2_filter_data *)(thisfilter->abstract);
- streamp = &(data->strm);
while (buckets_in->head) {
size_t bin = 0, desired;