php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76193 make warnings and make test fails
Submitted: 2018-04-07 10:08 UTC Modified: 2020-10-11 18:23 UTC
From: semnanweb at gmail dot com Assigned:
Status: Duplicate Package: rar (PECL)
PHP Version: 7.2.4 OS: ubuntu 18.04 (docker container)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: semnanweb at gmail dot com
New email:
PHP Version: OS:

 

 [2018-04-07 10:08 UTC] semnanweb at gmail dot com
Description:
------------
make warnings and make test fails

Test script:
---------------
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/rar.c -o rar.lo 
libtool: compile:  cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/rar.c  -fPIC -DPIC -o .libs/rar.o
In file included from /usr/include/php/20170718/main/php.h:34:0,
                 from /tmp/rar-4.0.0/rar.c:47:
/usr/include/php/20170718/main/php_config.h:2529:0: warning: "_GNU_SOURCE" redefined
 #define _GNU_SOURCE 1
 
/tmp/rar-4.0.0/rar.c:38:0: note: this is the location of the previous definition
 #define _GNU_SOURCE
 
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/rar_error.c -o rar_error.lo 
libtool: compile:  cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/rar_error.c  -fPIC -DPIC -o .libs/rar_error.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/rararch.c -o rararch.lo 
libtool: compile:  cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/rararch.c  -fPIC -DPIC -o .libs/rararch.o
In file included from /usr/include/php/20170718/main/php.h:34:0,
                 from /tmp/rar-4.0.0/rararch.c:38:
/usr/include/php/20170718/main/php_config.h:2529:0: warning: "_GNU_SOURCE" redefined
 #define _GNU_SOURCE 1
 
/tmp/rar-4.0.0/rararch.c:34:0: note: this is the location of the previous definition
 #define _GNU_SOURCE
 
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/rarentry.c -o rarentry.lo 
libtool: compile:  cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/rarentry.c  -fPIC -DPIC -o .libs/rarentry.o
In file included from /usr/include/php/20170718/main/php.h:34:0,
                 from /tmp/rar-4.0.0/rarentry.c:37:
/usr/include/php/20170718/main/php_config.h:2529:0: warning: "_GNU_SOURCE" redefined
 #define _GNU_SOURCE 1
 
/tmp/rar-4.0.0/rarentry.c:34:0: note: this is the location of the previous definition
 #define _GNU_SOURCE
 
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/rar_stream.c -o rar_stream.lo 
libtool: compile:  cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/rar_stream.c  -fPIC -DPIC -o .libs/rar_stream.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/rar_navigation.c -o rar_navigation.lo 
libtool: compile:  cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/rar_navigation.c  -fPIC -DPIC -o .libs/rar_navigation.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/rar_time.c -o rar_time.lo 
libtool: compile:  cc -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/rar_time.c  -fPIC -DPIC -o .libs/rar_time.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/sha256.cpp -o unrar/sha256.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/sha256.cpp  -fPIC -DPIC -o unrar/.libs/sha256.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/qopen.cpp -o unrar/qopen.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/qopen.cpp  -fPIC -DPIC -o unrar/.libs/qopen.o
/tmp/rar-4.0.0/unrar/qopen.cpp: In member function 'bool QuickOpen::ReadNext()':
/tmp/rar-4.0.0/unrar/qopen.cpp:264:8: warning: unused variable 'Flags' [-Wunused-variable]
   uint Flags=(uint)Raw.GetV();
        ^~~~~
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/blake2s.cpp -o unrar/blake2s.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/blake2s.cpp  -fPIC -DPIC -o unrar/.libs/blake2s.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/recvol.cpp -o unrar/recvol.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/recvol.cpp  -fPIC -DPIC -o unrar/.libs/recvol.o
In file included from /tmp/rar-4.0.0/unrar/recvol.cpp:3:0:
/tmp/rar-4.0.0/unrar/recvol3.cpp: In function 'bool IsNewStyleRev(const wchar*)':
/tmp/rar-4.0.0/unrar/recvol3.cpp:93:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
     if (!IsDigit(*Ext))
        ^
/tmp/rar-4.0.0/unrar/recvol3.cpp: In member function 'bool RecVolumes3::Restore(RAROptions*, const wchar*, bool)':
/tmp/rar-4.0.0/unrar/recvol3.cpp:231:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if (RecVolNumber!=0 && RecVolNumber!=P[1] || FileNumber!=0 && FileNumber!=P[2])
         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/rar-4.0.0/unrar/recvol.cpp:4:0:
/tmp/rar-4.0.0/unrar/recvol5.cpp: In member function 'bool RecVolumes5::Restore(RAROptions*, const wchar*, bool)':
/tmp/rar-4.0.0/unrar/recvol5.cpp:376:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       if (ReadSize!=RecBufferSize)
           ~~~~~~~~^~~~~~~~~~~~~~~
In file included from /tmp/rar-4.0.0/unrar/rar.hpp:13:0,
                 from /tmp/rar-4.0.0/unrar/recvol.cpp:1:
/tmp/rar-4.0.0/unrar/rardefs.hpp:4:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define  Min(x,y) (((x)<(y)) ? (x):(y))
                     ~~~^~~~
/tmp/rar-4.0.0/unrar/recvol5.cpp:393:34: note: in expansion of macro 'Min'
         size_t WriteSize=(size_t)Min(MaxRead,Item->FileSize);
                                  ^~~
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/headers.cpp -o unrar/headers.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/headers.cpp  -fPIC -DPIC -o unrar/.libs/headers.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/match.cpp -o unrar/match.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/match.cpp  -fPIC -DPIC -o unrar/.libs/match.o
/tmp/rar-4.0.0/unrar/match.cpp: In function 'bool CmpName(const wchar*, const wchar*, int)':
/tmp/rar-4.0.0/unrar/match.cpp:49:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
     if (CmpMode==MATCH_SUBPATH || CmpMode==MATCH_WILDSUBPATH)
        ^
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/find.cpp -o unrar/find.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/find.cpp  -fPIC -DPIC -o unrar/.libs/find.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/resource.cpp -o unrar/resource.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/resource.cpp  -fPIC -DPIC -o unrar/.libs/resource.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/pathfn.cpp -o unrar/pathfn.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/pathfn.cpp  -fPIC -DPIC -o unrar/.libs/pathfn.o
/tmp/rar-4.0.0/unrar/pathfn.cpp: In function 'void NextVolumeName(wchar*, uint, bool)':
/tmp/rar-4.0.0/unrar/pathfn.cpp:349:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if (ChPtr[1]==0 && wcslen(ArcName)<MaxLength-3 || wcsicomp(ChPtr+1,L"exe")==0 || wcsicomp(ChPtr+1,L"sfx")==0)
         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/pathfn.cpp: In function 'void MakeNameUsable(char*, bool)':
/tmp/rar-4.0.0/unrar/pathfn.cpp:420:64: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if (strchr(Extended ? "?*<>|\"":"?*",*s)!=NULL || Extended && (byte)*s<32)
                                                       ~~~~~~~~~^~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/pathfn.cpp: In function 'void MakeNameUsable(wchar*, bool)':
/tmp/rar-4.0.0/unrar/pathfn.cpp:441:66: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if (wcschr(Extended ? L"?*<>|\"":L"?*",*s)!=NULL || Extended && (uint)*s<32)
                                                         ~~~~~~~~~^~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/pathfn.cpp: In function 'void GenArcName(wchar*, const wchar*, uint, bool&)':
/tmp/rar-4.0.0/unrar/pathfn.cpp:725:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   if (StartWeekDay<0)
      ^
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/dll.cpp -o unrar/dll.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/dll.cpp  -fPIC -DPIC -o unrar/.libs/dll.o
/tmp/rar-4.0.0/unrar/dll.cpp: In function 'int RARReadHeaderEx(void*, RARHeaderDataEx*)':
/tmp/rar-4.0.0/unrar/dll.cpp:191:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
       if (Data->Arc.Volume && Data->Arc.GetHeaderType()==HEAD_ENDARC &&
          ^
/tmp/rar-4.0.0/unrar/dll.cpp: In function 'int ProcessFile(void*, int, char*, char*, wchar*, wchar*, void*, size_t, size_t*, bool, int*)':
/tmp/rar-4.0.0/unrar/dll.cpp:327:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         Operation==RAR_SKIP && !Data->Arc.Solid)
         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/dll.cpp:329:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
       if (Data->Arc.Volume && Data->Arc.GetHeaderType()==HEAD_FILE &&
          ^
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/threadpool.cpp -o unrar/threadpool.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/threadpool.cpp  -fPIC -DPIC -o unrar/.libs/threadpool.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/volume.cpp -o unrar/volume.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/volume.cpp  -fPIC -DPIC -o unrar/.libs/volume.o
/tmp/rar-4.0.0/unrar/volume.cpp: In function 'bool MergeArchive(Archive&, ComprDataIO*, bool, wchar)':
/tmp/rar-4.0.0/unrar/volume.cpp:22:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          hd->UnpVer>=20 && hd->FileHash.CRC32!=0xffffffff;
          ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/volume.cpp: In function 'bool DllVolChange(RAROptions*, wchar*, size_t)':
/tmp/rar-4.0.0/unrar/volume.cpp:248:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (DllVolAborted || Cmd->Callback==NULL && Cmd->ChangeVolProc==NULL)
                                            ^
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/unpack.cpp -o unrar/unpack.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/unpack.cpp  -fPIC -DPIC -o unrar/.libs/unpack.o
In file included from /tmp/rar-4.0.0/unrar/unpack.cpp:3:0:
/tmp/rar-4.0.0/unrar/model.cpp: In member function 'int ModelPPM::DecodeChar()':
/tmp/rar-4.0.0/unrar/coder.cpp:23:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   while ((low^(low+range))<TOP || range<BOT && ((range=-(int)low&(BOT-1)),1)) \
/tmp/rar-4.0.0/unrar/model.cpp:594:5: note: in expansion of macro 'ARI_DEC_NORMALIZE'
     ARI_DEC_NORMALIZE(Coder.code,Coder.low,Coder.range,Coder.UnpackRead);
     ^~~~~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/coder.cpp:23:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   while ((low^(low+range))<TOP || range<BOT && ((range=-(int)low&(BOT-1)),1)) \
/tmp/rar-4.0.0/unrar/model.cpp:615:3: note: in expansion of macro 'ARI_DEC_NORMALIZE'
   ARI_DEC_NORMALIZE(Coder.code,Coder.low,Coder.range,Coder.UnpackRead);
   ^~~~~~~~~~~~~~~~~
In file included from /tmp/rar-4.0.0/unrar/unpack.cpp:11:0:
/tmp/rar-4.0.0/unrar/unpack15.cpp: In member function 'void Unpack::LongLZ()':
/tmp/rar-4.0.0/unrar/unpack15.cpp:299:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   if (Length!=1 && Length!=4)
      ^
/tmp/rar-4.0.0/unrar/unpack15.cpp:313:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (OldAvr3 > 0xb0 || AvrPlc >= 0x2a00 && OldAvr2 < 0x40)
                         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /tmp/rar-4.0.0/unrar/unpack.cpp:12:0:
/tmp/rar-4.0.0/unrar/unpack20.cpp: In member function 'bool Unpack::ReadTables20()':
/tmp/rar-4.0.0/unrar/unpack20.cpp:195:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (I=0;I<BC20;I++)
            ~^~~~~
/tmp/rar-4.0.0/unrar/unpack20.cpp: In member function 'void Unpack::ReadLastTables()':
/tmp/rar-4.0.0/unrar/unpack20.cpp:259:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   if (ReadTop>=Inp.InAddr+5)
      ^
/tmp/rar-4.0.0/unrar/unpack20.cpp: In member function 'byte Unpack::DecodeAudio(int)':
/tmp/rar-4.0.0/unrar/unpack20.cpp:319:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int I=1;I<sizeof(V->Dif)/sizeof(V->Dif[0]);I++)
                  ~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/rar-4.0.0/unrar/unpack.cpp:14:0:
/tmp/rar-4.0.0/unrar/unpack30.cpp: In member function 'void Unpack::Unpack29(bool, bool)':
/tmp/rar-4.0.0/unrar/unpack30.cpp:32:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int I=0;I<ASIZE(DBitLengthCounts);I++,BitLength++)
/tmp/rar-4.0.0/unrar/unpack30.cpp: In member function 'void Unpack::UnpWriteBuf30()':
/tmp/rar-4.0.0/unrar/unpack30.cpp:585:31: warning: unused variable 'ParentPrg' [-Wunused-variable]
           VM_PreparedProgram *ParentPrg=&Filters30[NextFilter->ParentFilter]->Prg;
                               ^~~~~~~~~
/tmp/rar-4.0.0/unrar/unpack30.cpp:563:29: warning: unused variable 'ParentPrg' [-Wunused-variable]
         VM_PreparedProgram *ParentPrg=&Filters30[flt->ParentFilter]->Prg;
                             ^~~~~~~~~
/tmp/rar-4.0.0/unrar/unpack30.cpp: In member function 'bool Unpack::ReadTables30()':
/tmp/rar-4.0.0/unrar/unpack30.cpp:653:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int I=0;I<BC;I++)
                ~^~~
/tmp/rar-4.0.0/unrar/unpack30.cpp:666:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         while (ZeroCount-- > 0 && I<ASIZE(BitLength))
In file included from /tmp/rar-4.0.0/unrar/unpack.cpp:15:0:
/tmp/rar-4.0.0/unrar/unpack50.cpp: In member function 'void Unpack::Unpack5(bool, bool)':
/tmp/rar-4.0.0/unrar/unpack50.cpp:29:73: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
              Inp.InAddr==BlockHeader.BlockStart+BlockHeader.BlockSize-1 &&
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
              Inp.InBit>=BlockHeader.BlockBitSize)
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                         
/tmp/rar-4.0.0/unrar/unpack50.cpp:128:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
       if (LastLength!=0)
          ^
/tmp/rar-4.0.0/unrar/unpack50.cpp: In member function 'void Unpack::UnpWriteBuf()':
/tmp/rar-4.0.0/unrar/unpack50.cpp:392:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
       WrPtr!=UnpPtr && ((WrPtr-UnpPtr)&MaxWinMask)<((WriteBorder-UnpPtr)&MaxWinMask))
       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/unpack50.cpp: In member function 'bool Unpack::ReadTables(BitInput&, UnpackBlockHeader&, UnpackBlockTables&)':
/tmp/rar-4.0.0/unrar/unpack50.cpp:577:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int I=0;I<BC;I++)
                ~^~~
/tmp/rar-4.0.0/unrar/unpack50.cpp:590:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         while (ZeroCount-- > 0 && I<ASIZE(BitLength))
/tmp/rar-4.0.0/unrar/unpack.cpp: In member function 'void Unpack::Init(size_t, bool)':
/tmp/rar-4.0.0/unrar/unpack.cpp:96:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   if (NewWindow==NULL)
      ^
In file included from /tmp/rar-4.0.0/unrar/unpack.cpp:5:0:
/tmp/rar-4.0.0/unrar/model.cpp: In member function 'bool ModelPPM::DecodeInit(Unpack*, int&)':
/tmp/rar-4.0.0/unrar/model.cpp:571:31: warning: 'MaxMB' may be used uninitialized in this function [-Wmaybe-uninitialized]
     SubAlloc.StartSubAllocator(MaxMB+1);
     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/extract.cpp -o unrar/extract.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/extract.cpp  -fPIC -DPIC -o unrar/.libs/extract.o
/tmp/rar-4.0.0/unrar/extract.cpp: In member function 'void CmdExtract::DoExtract()':
/tmp/rar-4.0.0/unrar/extract.cpp:70:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
     if (!Cmd->DisableDone)
        ^
/tmp/rar-4.0.0/unrar/extract.cpp: In member function 'EXTRACT_ARC_CODE CmdExtract::ExtractArchive()':
/tmp/rar-4.0.0/unrar/extract.cpp:204:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
     if (!ExtractCurrentFile(Arc,Size,Repeat))
        ^
/tmp/rar-4.0.0/unrar/extract.cpp: In member function 'bool CmdExtract::ExtractCurrentFile(Archive&, size_t, bool&)':
/tmp/rar-4.0.0/unrar/extract.cpp:247:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   if (HeaderSize==0)
      ^
/tmp/rar-4.0.0/unrar/extract.cpp:273:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
     if (HeaderType==HEAD_ENDARC)
        ^
/tmp/rar-4.0.0/unrar/extract.cpp:355:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       if (Cmd->VersionControl-1==Version)
           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/tmp/rar-4.0.0/unrar/extract.cpp:572:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
       if (Command!='I')
          ^
/tmp/rar-4.0.0/unrar/extract.cpp:633:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
           if (FileCreateMode && *NameExisting!=0) // *NameExisting can be 0 in case of excessive -ap switch.
              ^
/tmp/rar-4.0.0/unrar/extract.cpp:639:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
         else
         ^~~~
/tmp/rar-4.0.0/unrar/extract.cpp:651:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
           if (!LinkSuccess || Arc.Format==RARFMT15 && !FileCreateMode)
           ^~
/tmp/rar-4.0.0/unrar/extract.cpp:651:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
           if (!LinkSuccess || Arc.Format==RARFMT15 && !FileCreateMode)
                               ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/extract.cpp:663:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
         if (!Arc.FileHead.SplitBefore)
            ^
/tmp/rar-4.0.0/unrar/extract.cpp:731:67: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
           (!LinkEntry || Arc.FileHead.RedirType==FSREDIR_FILECOPY && LinkSuccess) &&
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/extract.cpp:773:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   if (!ExtrFile)
      ^
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/errhnd.cpp -o unrar/errhnd.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/errhnd.cpp  -fPIC -DPIC -o unrar/.libs/errhnd.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/crc.cpp -o unrar/crc.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/crc.cpp  -fPIC -DPIC -o unrar/.libs/crc.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/rijndael.cpp -o unrar/rijndael.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/rijndael.cpp  -fPIC -DPIC -o unrar/.libs/rijndael.o
/tmp/rar-4.0.0/unrar/rijndael.cpp: In member function 'void Rijndael::GenerateTables()':
/tmp/rar-4.0.0/unrar/rijndael.cpp:439:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0,w = 1; i < sizeof(rcon)/sizeof(rcon[0]); i++)
                         ~~^~~~~~~~~~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/rijndael.cpp: In member function 'void Rijndael::Init(bool, const byte*, uint, const byte*)':
/tmp/rar-4.0.0/unrar/rijndael.cpp:82:8: warning: 'uKeyLenInBytes' may be used uninitialized in this function [-Wmaybe-uninitialized]
   uint uKeyLenInBytes;
        ^~~~~~~~~~~~~~
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/crypt.cpp -o unrar/crypt.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/crypt.cpp  -fPIC -DPIC -o unrar/.libs/crypt.o
In file included from /tmp/rar-4.0.0/unrar/crypt.cpp:7:0:
/tmp/rar-4.0.0/unrar/crypt3.cpp: In member function 'void CryptData::SetKey30(bool, SecPassword*, const wchar*, const byte*)':
/tmp/rar-4.0.0/unrar/crypt3.cpp:8:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         (Salt==NULL && !KDF3Cache[I].SaltPresent || Salt!=NULL &&
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/crypt.cpp: In member function 'void CryptData::DecryptBlock(byte*, size_t)':
/tmp/rar-4.0.0/unrar/crypt.cpp:33:9: warning: enumeration value 'CRYPT_NONE' not handled in switch [-Wswitch]
   switch(Method)
         ^
/tmp/rar-4.0.0/unrar/crypt.cpp: In member function 'bool CryptData::SetCryptKeys(bool, CRYPT_METHOD, SecPassword*, const byte*, const byte*, uint, byte*, byte*)':
/tmp/rar-4.0.0/unrar/crypt.cpp:69:9: warning: enumeration value 'CRYPT_NONE' not handled in switch [-Wswitch]
   switch(Method)
         ^
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/rawread.cpp -o unrar/rawread.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/rawread.cpp  -fPIC -DPIC -o unrar/.libs/rawread.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/rs.cpp -o unrar/rs.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/rs.cpp  -fPIC -DPIC -o unrar/.libs/rs.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/smallfn.cpp -o unrar/smallfn.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/smallfn.cpp  -fPIC -DPIC -o unrar/.libs/smallfn.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/isnt.cpp -o unrar/isnt.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/isnt.cpp  -fPIC -DPIC -o unrar/.libs/isnt.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/rar.cpp -o unrar/rar.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/rar.cpp  -fPIC -DPIC -o unrar/.libs/rar.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/consio.cpp -o unrar/consio.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/consio.cpp  -fPIC -DPIC -o unrar/.libs/consio.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/scantree.cpp -o unrar/scantree.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/scantree.cpp  -fPIC -DPIC -o unrar/.libs/scantree.o
/tmp/rar-4.0.0/unrar/scantree.cpp: In member function 'bool ScanTree::GetNextMask()':
/tmp/rar-4.0.0/unrar/scantree.cpp:221:51: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (Name[0]=='.' && (Name[1]==0 || Name[1]=='.' && Name[2]==0))
                                      ~~~~~~~~~~~~~^~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/scantree.cpp: In member function 'SCAN_CODE ScanTree::FindProc(FindData*)':
/tmp/rar-4.0.0/unrar/scantree.cpp:260:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                    FolderWildcards && Recurse!=RECURSE_DISABLE ||
                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/scantree.cpp:261:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                    Wildcards && Recurse==RECURSE_WILDCARDS ||
                    ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/scantree.cpp:262:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                    ScanEntireDisk && Recurse!=RECURSE_DISABLE);
                    ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/archive.cpp -o unrar/archive.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/archive.cpp  -fPIC -DPIC -o unrar/.libs/archive.o
In file included from /tmp/rar-4.0.0/unrar/archive.cpp:3:0:
/tmp/rar-4.0.0/unrar/arccmt.cpp: In member function 'bool Archive::GetComment(Array<wchar_t>*)':
/tmp/rar-4.0.0/unrar/arccmt.cpp:45:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (Format==RARFMT14 && MainHead.PackComment || Format!=RARFMT14 && CommHead.Method!=0x30)
       ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/tmp/rar-4.0.0/unrar/archive.cpp: In static member function 'static RARFORMAT Archive::IsSignature(const byte*, size_t)':
/tmp/rar-4.0.0/unrar/archive.cpp:100:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   if (Size>=1 && D[0]==0x52)
      ^
/tmp/rar-4.0.0/unrar/archive.cpp: In member function 'bool Archive::IsArchive(bool)':
/tmp/rar-4.0.0/unrar/archive.cpp:201:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if (Type==HEAD_MAIN || SilentOpen && Type==HEAD_CRYPT)
                            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /tmp/rar-4.0.0/unrar/archive.cpp:3:0:
/tmp/rar-4.0.0/unrar/arccmt.cpp: At global scope:
/tmp/rar-4.0.0/unrar/arccmt.cpp:1:13: warning: 'bool IsAnsiEscComment(const wchar*, size_t)' declared 'static' but never defined [-Wunused-function]
 static bool IsAnsiEscComment(const wchar *Data,size_t Size);
             ^~~~~~~~~~~~~~~~
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/strfn.cpp -o unrar/strfn.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/strfn.cpp  -fPIC -DPIC -o unrar/.libs/strfn.o
/tmp/rar-4.0.0/unrar/strfn.cpp: In function 'bool IsAlpha(int)':
/tmp/rar-4.0.0/unrar/strfn.cpp:189:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   return ch>='A' && ch<='Z' || ch>='a' && ch<='z';
          ~~~~~~~~^~~~~~~~~~
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/strlist.cpp -o unrar/strlist.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/strlist.cpp  -fPIC -DPIC -o unrar/.libs/strlist.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/getbits.cpp -o unrar/getbits.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/getbits.cpp  -fPIC -DPIC -o unrar/.libs/getbits.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/hash.cpp -o unrar/hash.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/hash.cpp  -fPIC -DPIC -o unrar/.libs/hash.o
/tmp/rar-4.0.0/unrar/hash.cpp: In member function 'bool HashValue::operator==(const HashValue&)':
/tmp/rar-4.0.0/unrar/hash.cpp:33:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (Type==HASH_RAR14 && cmp.Type==HASH_RAR14 ||
       ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/filestr.cpp -o unrar/filestr.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/filestr.cpp  -fPIC -DPIC -o unrar/.libs/filestr.o
/tmp/rar-4.0.0/unrar/filestr.cpp: In function 'bool ReadTextFile(const wchar*, StringList*, bool, bool, RAR_CHARSET, bool, bool, bool)':
/tmp/rar-4.0.0/unrar/filestr.cpp:16:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   if (Name!=NULL)
      ^
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/extinfo.cpp -o unrar/extinfo.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/extinfo.cpp  -fPIC -DPIC -o unrar/.libs/extinfo.o
In file included from /tmp/rar-4.0.0/unrar/rar.hpp:13:0,
                 from /tmp/rar-4.0.0/unrar/extinfo.cpp:1:
/tmp/rar-4.0.0/unrar/ulinks.cpp: In function 'bool ExtractUnixLink30(CommandData*, ComprDataIO&, Archive&, const wchar*)':
/tmp/rar-4.0.0/unrar/rardefs.hpp:4:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define  Min(x,y) (((x)<(y)) ? (x):(y))
                     ~~~^~~~
/tmp/rar-4.0.0/unrar/ulinks.cpp:53:21: note: in expansion of macro 'Min'
     size_t DataSize=Min(Arc.FileHead.PackSize,ASIZE(Target)-1);
                     ^~~
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/ui.cpp -o unrar/ui.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/ui.cpp  -fPIC -DPIC -o unrar/.libs/ui.o
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/rarvm.cpp -o unrar/rarvm.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/rarvm.cpp  -fPIC -DPIC -o unrar/.libs/rarvm.o
/tmp/rar-4.0.0/unrar/rarvm.cpp: In member function 'bool RarVM::ExecuteStandardFilter(VM_StandardFilters)':
/tmp/rar-4.0.0/unrar/rarvm.cpp:116:9: warning: enumeration value 'VMSF_NONE' not handled in switch [-Wswitch]
   switch(FilterType)
         ^
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/timefn.cpp -o unrar/timefn.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/timefn.cpp  -fPIC -DPIC -o unrar/.libs/timefn.o
/tmp/rar-4.0.0/unrar/timefn.cpp: In member function 'void RarTime::SetIsoText(const wchar*)':
/tmp/rar-4.0.0/unrar/timefn.cpp:253:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       if (FieldPos<ASIZE(Field))
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/sha1.cpp -o unrar/sha1.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/sha1.cpp  -fPIC -DPIC -o unrar/.libs/sha1.o
/tmp/rar-4.0.0/unrar/sha1.cpp: In function 'void sha1_process_rar29(sha1_context*, const unsigned char*, size_t)':
/tmp/rar-4.0.0/unrar/sha1.cpp:164:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   else
   ^~~~
/tmp/rar-4.0.0/unrar/sha1.cpp:166:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
     if (len > i)
     ^~
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/rdwrfn.cpp -o unrar/rdwrfn.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/rar-4.0.0/unrar/rdwrfn.cpp  -fPIC -DPIC -o unrar/.libs/rdwrfn.o
/tmp/rar-4.0.0/unrar/rdwrfn.cpp: In member function 'int ComprDataIO::UnpRead(byte*, size_t)':
/tmp/rar-4.0.0/unrar/rdwrfn.cpp:120:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         (ReadSize==0 || Decryption && (TotalRead & CRYPT_BLOCK_MASK) != 0) )
                         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/bin/bash /tmp/rar-4.0.0/libtool --mode=compile g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/rar-4.0.0/unrar/rs16.cpp -o unrar/rs16.lo 
libtool: compile:  g++ -DRARDLL -DSILENT -Wno-write-strings -Wall -I/tmp/rar-4.0.0/unrar -I. -I/tmp/rar-4.0.0 -DPHP_ATOM_INC -I/tmp/rar-4.0.0/include -I/tmp/rar-4.0.0/main -I/tmp/rar-4.0.0 -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-11 18:23 UTC] cataphract@php.net
-Status: Open +Status: Duplicate
 [2020-10-11 18:23 UTC] cataphract@php.net
Support for PHP 7.2 was added in 4.1.0
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC