> On Apr 29, 2014, at 8:00 PM, [email protected] wrote: > > Repository: trafficserver > Updated Branches: > refs/heads/master 6f92984f5 -> 7ff90360b > > > TS-2736: Fix build on ignored return value. > > > Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo > Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/7ff90360 > Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/7ff90360 > Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/7ff90360 > > Branch: refs/heads/master > Commit: 7ff90360b6ccf7debf7489bff6caa56e11181c06 > Parents: 6f92984 > Author: Leif Hedstrom <[email protected]> > Authored: Tue Apr 29 20:59:26 2014 -0600 > Committer: Phil Sorber <[email protected]> > Committed: Tue Apr 29 20:59:26 2014 -0600 > > ---------------------------------------------------------------------- > mgmt/Main.cc | 2 +- > proxy/Main.cc | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > ---------------------------------------------------------------------- > > > http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7ff90360/mgmt/Main.cc > ---------------------------------------------------------------------- > diff --git a/mgmt/Main.cc b/mgmt/Main.cc > index 8e7cfad..e81ed85 100644 > --- a/mgmt/Main.cc > +++ b/mgmt/Main.cc > @@ -316,7 +316,7 @@ set_process_limits(int fds_throttle) > FILE *fd; > > if ((fd = fopen("/proc/sys/fs/file-max","r"))) { > - fscanf(fd, "%lu", &lim.rlim_max); > + ATS_UNUSED_RETURN(fscanf(fd, "%lu", &lim.rlim_max)); > fclose(fd); > REC_ReadConfigFloat(file_max_pct, "proxy.config.system.file_max_pct"); > lim.rlim_cur = lim.rlim_max = lim.rlim_max * file_max_pct; > > http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7ff90360/proxy/Main.cc > ---------------------------------------------------------------------- > diff --git a/proxy/Main.cc b/proxy/Main.cc > index 05affe7..8267c16 100644 > --- a/proxy/Main.cc > +++ b/proxy/Main.cc > @@ -805,7 +805,7 @@ adjust_sys_settings(void) > ats_mallopt(ATS_MMAP_MAX, mmap_max); > > if ((fd = fopen("/proc/sys/fs/file-max","r"))) { > - fscanf(fd, "%lu", &lim.rlim_max); > + ATS_UNUSED_RETURN(fscanf(fd, "%lu", &lim.rlim_max)); > fclose(fd); > REC_ReadConfigFloat(file_max_pct, "proxy.config.system.file_max_pct"); > lim.rlim_cur = lim.rlim_max = lim.rlim_max * file_max_pct; >
