Skip to content

community/php8{2,3}-pecl-smbclient, testing/php81-pecl-smbclient: fix build with gcc 14 on 32-bit arches

mio requested to merge mio/aports:php83-pecl-smbclient into master

Fix -Wincompatible-pointer-types error with gcc 14 on 32-bit arches. Found during a rebuild of php83-pecl-smbclient on the 3.21 armv7 builder (error log).

/home/buildozer/aports/community/php83-pecl-smbclient/src/smbclient-1.1.1/smb_streams.c:328:9: error: initialization of 'int (*)(php_stream *, zend_off_t,  int,  zend_off_t *)' {aka 'int (*)(struct _php_stream *, int,  int,  int *)'} from incompatible pointer type 'int (*)(php_stream *, off_t,  int,  off_t *)' {aka 'int (*)(struct _php_stream *, long long int,  int,  long long int *)'} [-Wincompatible-pointer-types]
  328 |         php_smb_ops_seek,
      |         ^~~~~~~~~~~~~~~~

Merge request reports

Loading