-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warnings on Compile (not failure) zim_ExcelSheet_table #249
Comments
cjsfj
changed the title
Warnings on Compile (not failure)
Warnings on Compile (not failure) zim_ExcelSheet_table
Feb 7, 2019
The API might have changed a bit between the versions seems a problem with pointer types where it hasn't been pointers before. |
Looks like I am getting the same warnings on CentOS 6 with PHP 7.2.14: |
Same warnings for PHP 7.1:
|
On Windows the warning is the same (with quite a lot of additional ones). PHP 7.2.15, VC15 nts x64:
Complete build log:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP 7.2.15 with LibXL 3.8.4.0 on CentOS 7.
Getting a big block of warnings (see below). The module build is not failing and I haven't yet found anything that doesn't work quite right, but wanted to report the warnings.
Happens with what would consider "updated" forks https://github.com/johmue/php_excel/tree/issue234 and https://github.com/Jan-E/php_excel/tree/php7_with_pulls
Thanks
CJ
/usr/local/php_excel-issue234/excel.c: In function ‘zim_ExcelSheet_table’: /usr/local/php_excel-issue234/excel.c:4745:2: warning: passing argument 3 of ‘xlSheetTableA’ from incompatible pointer type [enabled by default] if (!(name = xlSheetTable(sheet, index, &rowFirst, &rowLast, &colFirst, &colLast, &headerRowCount, &totalsRowCount))) { ^ In file included from /usr/local/libxl/include_c/libxl.h:308:0, from /usr/local/php_excel-issue234/excel.c:23: /usr/local/libxl/include_c/SheetA.h:179:37: note: expected ‘int *’ but argument is of type ‘zend_long *’ XLAPI const char* XLAPIENTRY xlSheetTableA(SheetHandle handle, int index, int* rowFirst, int* rowLast, int* colFirst, int* colLast, int* headerRowCount, int* totalsRowCount); ^ /usr/local/php_excel-issue234/excel.c:4745:2: warning: passing argument 4 of ‘xlSheetTableA’ from incompatible pointer type [enabled by default] if (!(name = xlSheetTable(sheet, index, &rowFirst, &rowLast, &colFirst, &colLast, &headerRowCount, &totalsRowCount))) { ^ In file included from /usr/local/libxl/include_c/libxl.h:308:0, from /usr/local/php_excel-issue234/excel.c:23: /usr/local/libxl/include_c/SheetA.h:179:37: note: expected ‘int *’ but argument is of type ‘zend_long *’ XLAPI const char* XLAPIENTRY xlSheetTableA(SheetHandle handle, int index, int* rowFirst, int* rowLast, int* colFirst, int* colLast, int* headerRowCount, int* totalsRowCount); ^ /usr/local/php_excel-issue234/excel.c:4745:2: warning: passing argument 5 of ‘xlSheetTableA’ from incompatible pointer type [enabled by default] if (!(name = xlSheetTable(sheet, index, &rowFirst, &rowLast, &colFirst, &colLast, &headerRowCount, &totalsRowCount))) { ^ In file included from /usr/local/libxl/include_c/libxl.h:308:0, from /usr/local/php_excel-issue234/excel.c:23: /usr/local/libxl/include_c/SheetA.h:179:37: note: expected ‘int *’ but argument is of type ‘zend_long *’ XLAPI const char* XLAPIENTRY xlSheetTableA(SheetHandle handle, int index, int* rowFirst, int* rowLast, int* colFirst, int* colLast, int* headerRowCount, int* totalsRowCount); ^ /usr/local/php_excel-issue234/excel.c:4745:2: warning: passing argument 6 of ‘xlSheetTableA’ from incompatible pointer type [enabled by default] if (!(name = xlSheetTable(sheet, index, &rowFirst, &rowLast, &colFirst, &colLast, &headerRowCount, &totalsRowCount))) { ^ In file included from /usr/local/libxl/include_c/libxl.h:308:0, from /usr/local/php_excel-issue234/excel.c:23: /usr/local/libxl/include_c/SheetA.h:179:37: note: expected ‘int *’ but argument is of type ‘zend_long *’ XLAPI const char* XLAPIENTRY xlSheetTableA(SheetHandle handle, int index, int* rowFirst, int* rowLast, int* colFirst, int* colLast, int* headerRowCount, int* totalsRowCount); ^ /usr/local/php_excel-issue234/excel.c:4745:2: warning: passing argument 7 of ‘xlSheetTableA’ from incompatible pointer type [enabled by default] if (!(name = xlSheetTable(sheet, index, &rowFirst, &rowLast, &colFirst, &colLast, &headerRowCount, &totalsRowCount))) { ^ In file included from /usr/local/libxl/include_c/libxl.h:308:0, from /usr/local/php_excel-issue234/excel.c:23: /usr/local/libxl/include_c/SheetA.h:179:37: note: expected ‘int *’ but argument is of type ‘zend_long *’ XLAPI const char* XLAPIENTRY xlSheetTableA(SheetHandle handle, int index, int* rowFirst, int* rowLast, int* colFirst, int* colLast, int* headerRowCount, int* totalsRowCount); ^ /usr/local/php_excel-issue234/excel.c:4745:2: warning: passing argument 8 of ‘xlSheetTableA’ from incompatible pointer type [enabled by default] if (!(name = xlSheetTable(sheet, index, &rowFirst, &rowLast, &colFirst, &colLast, &headerRowCount, &totalsRowCount))) { ^ In file included from /usr/local/libxl/include_c/libxl.h:308:0, from /usr/local/php_excel-issue234/excel.c:23: /usr/local/libxl/include_c/SheetA.h:179:37: note: expected ‘int *’ but argument is of type ‘zend_long *’ XLAPI const char* XLAPIENTRY xlSheetTableA(SheetHandle handle, int index, int* rowFirst, int* rowLast, int* colFirst, int* colLast, int* headerRowCount, int* totalsRowCount); ^ /usr/local/php_excel-issue234/excel.c: In function ‘zim_ExcelFilterColumn_getCustomFilter’: /usr/local/php_excel-issue234/excel.c:5269:2: warning: passing argument 3 of ‘xlFilterColumnGetCustomFilterA’ from incompatible pointer type [enabled by default] if (!xlFilterColumnGetCustomFilter(filtercolumn, &op1, &v1, &op2, &v2, &andOp)) { ^ In file included from /usr/local/libxl/include_c/libxl.h:312:0, from /usr/local/php_excel-issue234/excel.c:23: /usr/local/libxl/include_c/FilterColumnA.h:23:34: note: expected ‘const char **’ but argument is of type ‘char **’ XLAPI int XLAPIENTRY xlFilterColumnGetCustomFilterA(FilterColumnHandle handle, int* op1, const char** v1, int* op2, const char** v2, int* andOp); ^ /usr/local/php_excel-issue234/excel.c:5269:2: warning: passing argument 5 of ‘xlFilterColumnGetCustomFilterA’ from incompatible pointer type [enabled by default] if (!xlFilterColumnGetCustomFilter(filtercolumn, &op1, &v1, &op2, &v2, &andOp)) { ^ In file included from /usr/local/libxl/include_c/libxl.h:312:0, from /usr/local/php_excel-issue234/excel.c:23: /usr/local/libxl/include_c/FilterColumnA.h:23:34: note: expected ‘const char **’ but argument is of type ‘char **’ XLAPI int XLAPIENTRY xlFilterColumnGetCustomFilterA(FilterColumnHandle handle, int* op1, const char** v1, int* op2, const char** v2, int* andOp); ^
The text was updated successfully, but these errors were encountered: