]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
3871 fix issues introduced by 3604
authorAndriy Gapon <avg@FreeBSD.org>
Fri, 14 Apr 2017 16:59:53 +0000 (16:59 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Fri, 14 Apr 2017 16:59:53 +0000 (16:59 +0000)
commite8fe3151e2cc17b7567726fb05c1706d9771f2e5
treeee50c6bad0bcb29be40ae0c0ebabfbb2597439f4
parente5cf3d39f9f81dbc1968403d148244418f815714
3871 fix issues introduced by 3604

illumos/illumos-gate@de05b58863498b10283637eb9ac85e92fe85150e
https://github.com/illumos/illumos-gate/commit/de05b58863498b10283637eb9ac85e92fe85150e

https://www.illumos.org/issues/3871
  GCC 4.5.3 on Gentoo Linux did not like a few of the changes made in the issue
  3604 patch. It printed an error and a couple of warnings:
  ../../cmd/zdb/zdb.c: In function 'dump_bpobj':
  ../../cmd/zdb/zdb.c:1257:3: error: 'for' loop initial declarations are only
  allowed in C99 mode
  ../../cmd/zdb/zdb.c:1257:3: note: use option -std=c99 or -std=gnu99 to compile
  your code
  ../../cmd/zdb/zdb.c: In function 'dump_deadlist':
  ../../cmd/zdb/zdb.c:1323:8: warning: too many arguments for format
  ../../cmd/zdb/zdb.c:1323:8: warning: too many arguments for format

Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Serapheim Dimitropoulos <serapheim@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Richard Yao <ryao@gentoo.org>
cmd/zdb/zdb.c