You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Igor Galić (JIRA)" <ji...@apache.org> on 2013/07/11 02:11:48 UTC

[jira] [Updated] (TS-2023) healthcheck plugin fails to build with hardening options

     [ https://issues.apache.org/jira/browse/TS-2023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Galić updated TS-2023:
---------------------------

    Attachment: 0001-TS-2023-healthcheck-plugin-build-fails.patch

check for fread()'s return value.
While we're at it, add {} around ifs.
                
> healthcheck plugin fails to build with hardening options
> --------------------------------------------------------
>
>                 Key: TS-2023
>                 URL: https://issues.apache.org/jira/browse/TS-2023
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Build, Plugins
>            Reporter: Igor Galić
>         Attachments: 0001-TS-2023-healthcheck-plugin-build-fails.patch
>
>
> {noformat}
>  cc -DHAVE_CONFIG_H -I. -I../../../lib/ts -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -I../../../proxy/api -I../../../proxy/api -I../../../lib/ts -I../../../lib/ts -Dlinux -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/tcl8.5 -Wunused-parameter -g -pipe -Wall -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Werror -mcx16 -MT healthchecks.lo -MD -MP -MF .deps/healthchecks.Tpo -c healthchecks.c  -fPIC -DPIC -o .libs/healthchecks.o
> healthchecks.c: In function 'parse_configs':
> healthchecks.c:323:10: error: ignoring return value of 'fread', declared with attribute warn_unused_result [-Werror=unused-result]
> cc1: all warnings being treated as errors
> make[3]: *** [healthchecks.lo] Error 1
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira