Skip to content

Commit 05ca4b2

Browse files
committed
Removing unused variables
1 parent 47f3103 commit 05ca4b2

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ env:
2323
- LIBRARY_PATH="$TRAVIS_BUILD_DIR/build/lib":$LIBRARY_PATH
2424
- C_INCLUDE_PATH="$TRAVIS_BUILD_DIR/build/include"
2525
matrix:
26-
- CC="ccache gcc" CFLAGS="-g3 -O0 -fno-delete-null-pointer-checks -Wall -fvisibility=hidden"
27-
- CC="ccache clang" CFLAGS="-g3 -O0 -fcolor-diagnostics"
26+
- CC="ccache gcc" CFLAGS="-g3 -O0 -fno-delete-null-pointer-checks -Wall -std=gnu90 -fvisibility=hidden"
27+
- CC="ccache clang" "-g3 -O0 -fcolor-diagnostics -Wall -std=gnu90"
2828

2929
matrix:
3030
fast_finish: true
3131
allow_failures:
3232
- php: nightly
3333
include:
34-
- env: CC="ccache gcc" CFLAGS="-g3 -O0 -fno-delete-null-pointer-checks -Wall -fvisibility=hidden"
34+
- env: CC="ccache gcc" CFLAGS="-g3 -O0 -fno-delete-null-pointer-checks -Wall -std=gnu90 -fvisibility=hidden"
3535
php: nightly
3636
compiler: gcc
37-
- env: CC="ccache clang" CFLAGS="-g3 -O0 -fcolor-diagnostics"
37+
- env: CC="ccache clang" "-g3 -O0 -fcolor-diagnostics -Wall -std=gnu90"
3838
php: nightly
3939
compiler: clang
4040

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1717
### Fixed
1818
- Fixed compiler warnings on build lemon
1919
- Removing unused structures
20+
- Removing unused variables
2021

2122
## 1.0.0 - 2017-03-26
2223
### Added

install-development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if [ x"$CC" == x ]; then
5656
fi
5757

5858
if [ x"$CC" == xclang ]; then
59-
export CFLAGS="-g3 -O0 -fcolor-diagnostics -std=gnu90"
59+
export CFLAGS="-g3 -O0 -fcolor-diagnostics -Wall -std=gnu90"
6060
else
6161
export CFLAGS="-g3 -O0 -fno-delete-null-pointer-checks -Wall -fvisibility=hidden -std=gnu90"
6262
fi

parser/base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void xx_parse_program(zval *return_value, char *program, size_t program_length,
7777
char *error;
7878
xx_scanner_state *state;
7979
xx_scanner_token token;
80-
int scanner_status, status = SUCCESS, start_lines;
80+
int scanner_status, status = SUCCESS;
8181
xx_parser_status *parser_status = NULL;
8282
void* xx_parser;
8383

parser/scanner.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
2828

29-
char next, *q = YYCURSOR, *start = YYCURSOR;
29+
char *q = YYCURSOR, *start = YYCURSOR;
3030
int status = XX_SCANNER_RETCODE_IMPOSSIBLE;
3131
int is_constant = 0, j;
3232

zephir_parser.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ PHP_FUNCTION(zephir_parse_file)
3737
char *content = NULL;
3838
char *filepath = NULL;
3939
#if PHP_VERSION_ID >= 70000
40-
zend_array *arr = NULL;
4140
zval ret;
4241
zval error, *error_ptr = &error;
4342
zval **error_msg = &error_ptr;

0 commit comments

Comments
 (0)