FS#60283 - [libaio] test case 19 breaks on newer gcc
Attached to Project:
Arch Linux
Opened by Andreas Baumann (andreas_baumann) - Tuesday, 02 October 2018, 15:50 GMT
Last edited by Allan McRae (Allan) - Sunday, 04 November 2018, 05:58 GMT
Opened by Andreas Baumann (andreas_baumann) - Tuesday, 02 October 2018, 15:50 GMT
Last edited by Allan McRae (Allan) - Sunday, 04 November 2018, 05:58 GMT
|
Details
Description:
In file included from main.c:24: cases/19.t: In function 'open_temp_file': cases/19.t:44:36: error: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess] strncpy(template, TEMPLATE, sizeof(TEMPLATE)); ^ cc1: all warnings being treated as errors Is reported upstream already https://pagure.io/libaio/pull-request/5. Additional info: * package version(s): 0.3.111-1 Steps to reproduce: asp export libaio cd libaio staging-x86_64-build |
This task depends upon
Closed by Allan McRae (Allan)
Sunday, 04 November 2018, 05:58 GMT
Reason for closing: Fixed
Additional comments about closing: libaio-0.3.111-2
Sunday, 04 November 2018, 05:58 GMT
Reason for closing: Fixed
Additional comments about closing: libaio-0.3.111-2
CFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe -Wno-error=sizeof-pointer-memaccess"
Of course, also applying the patch mentioned above works..