linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 4.2-rc2 perf build error builtin-stat.c:346: error: declaration of ‘close’ shadows a global declaration
@ 2015-07-07 18:01 Vinson Lee
  2015-07-08 11:17 ` [PATCH] perf stat: Fix shadow declaration of close Jiri Olsa
  0 siblings, 1 reply; 2+ messages in thread
From: Vinson Lee @ 2015-07-07 18:01 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo, Jiri Olsa
  Cc: LKML, linux-perf-users

Hi.

4.2-rc1 commit 106a94a0f8c207ef4113ce7e32f34a00b3b174e7 "perf stat:
Introduce read_counters function" introduced a build error with older
toolchains.

This is the build error on CentOS 6.

  CC       builtin-stat.o
cc1: warnings being treated as errors
builtin-stat.c: In function ‘read_counters’:
builtin-stat.c:346: error: declaration of ‘close’ shadows a global declaration
/usr/include/unistd.h:350: error: shadowed declaration is here

Cheers,
Vinson

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-08 11:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07 18:01 4.2-rc2 perf build error builtin-stat.c:346: error: declaration of ‘close’ shadows a global declaration Vinson Lee
2015-07-08 11:17 ` [PATCH] perf stat: Fix shadow declaration of close Jiri Olsa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).