diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-20 01:38:35 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-20 01:38:35 +0000 |
commit | 18616e8fc92b66e7ef9d563a282803b61da62f76 (patch) | |
tree | cb7e95288f6c5bc6cb1e5252466e0c95f2f0a4bc /usr.sbin | |
parent | 958dcdaae75c34c5266c3cbc9868095fa0ff1a26 (diff) | |
download | FreeBSD-src-18616e8fc92b66e7ef9d563a282803b61da62f76.zip FreeBSD-src-18616e8fc92b66e7ef9d563a282803b61da62f76.tar.gz |
Fix warning when compiling with gcc46:
error: variable 'parentrecnum' set but not used
Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/makefs/cd9660.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/usr.sbin/makefs/cd9660.c b/usr.sbin/makefs/cd9660.c index 90ddb60..336b1f7ba 100644 --- a/usr.sbin/makefs/cd9660.c +++ b/usr.sbin/makefs/cd9660.c @@ -1516,7 +1516,6 @@ cd9660_generate_path_table(void) cd9660node *last = dirNode; int pathTableSize = 0; /* computed as we go */ int counter = 1; /* root gets a count of 0 */ - int parentRecNum = 0; /* root's parent is '0' */ TAILQ_HEAD(cd9660_pt_head, ptq_entry) pt_head; TAILQ_INIT(&pt_head); @@ -1546,10 +1545,6 @@ cd9660_generate_path_table(void) } last = dirNode; - parentRecNum = 1; - if (dirNode->parent != 0) - parentRecNum = dirNode->parent->ptnumber; - /* Push children onto queue */ TAILQ_FOREACH(cn, &dirNode->cn_children, cn_next_child) { /* |