Skip to content

PHP8.1.33编译过程中出现报错 #556

@syaoran050726

Description

@syaoran050726

PHP-8.1.33 ALPHINE-3.22

pecl install xlswriter-1.5.8

出现下列报错

from /tmp/pear/temp/xlswriter/kernel/excel.c:13:
/tmp/pear/temp/xlswriter/kernel/excel.c: In function 'zim_vtiful_xls_setColumn':
/tmp/pear/temp/xlswriter/library/libxlsxwriter/include/xlsxwriter/common.h:291:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'zend_long' {aka 'long int'} [-Wformat=]
291 | LXW_PRINTF(LXW_STDERR "[WARNING]: " message "\n", var)
| ^~~~~~~~~~~~~
/tmp/pear/temp/xlswriter/kernel/excel.c:1065:9: note: in expansion of macro 'LXW_WARN_FORMAT1'
1065 | LXW_WARN_FORMAT1("outline level must be in 0..7 range, '%d' given.", level);
| ^~~~~~~~~~~~~~~~
/tmp/pear/temp/xlswriter/kernel/excel.c: In function 'zim_vtiful_xls_setRow':
/tmp/pear/temp/xlswriter/library/libxlsxwriter/include/xlsxwriter/common.h:291:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'zend_long' {aka 'long int'} [-Wformat=]
291 | LXW_PRINTF(LXW_STDERR "[WARNING]: " message "\n", var)
| ^~~~~~~~~~~~~
/tmp/pear/temp/xlswriter/kernel/excel.c:1110:9: note: in expansion of macro 'LXW_WARN_FORMAT1'
1110 | LXW_WARN_FORMAT1("outline level must be in 0..7 range, '%d' given.", level);
| ^~~~~~~~~~~~~~~~
/tmp/pear/temp/xlswriter/kernel/excel.c: In function 'zim_vtiful_xls_defaultRowOptions':
/tmp/pear/temp/xlswriter/library/libxlsxwriter/include/xlsxwriter/common.h:291:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'zend_long' {aka 'long int'} [-Wformat=]
291 | LXW_PRINTF(LXW_STDERR "[WARNING]: " message "\n", var)
| ^~~~~~~~~~~~~
/tmp/pear/temp/xlswriter/kernel/excel.c:1207:9: note: in expansion of macro 'LXW_WARN_FORMAT1'
1207 | LXW_WARN_FORMAT1("outline level must be in 0..7 range, '%d' given.", level);
| ^~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions