diff options
author | kaiw <kaiw@FreeBSD.org> | 2014-01-29 09:58:05 +0000 |
---|---|---|
committer | kaiw <kaiw@FreeBSD.org> | 2014-01-29 09:58:05 +0000 |
commit | f8038f60cdbb0cfc0737893790a54ac9024416b7 (patch) | |
tree | da8e6ff98d33686c8b73e4b4dc6530226b76adb8 /cddl/contrib/opensolaris/tools | |
parent | d106d865acbe06c88808030c52faf8d9d78e6697 (diff) | |
download | FreeBSD-src-f8038f60cdbb0cfc0737893790a54ac9024416b7.zip FreeBSD-src-f8038f60cdbb0cfc0737893790a54ac9024416b7.tar.gz |
Only declare `bysz' variable under little endian archs.
Diffstat (limited to 'cddl/contrib/opensolaris/tools')
-rw-r--r-- | cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c index bff4c54..55ce7b2 100644 --- a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c +++ b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c @@ -935,7 +935,10 @@ static void die_sou_create(dwarf_t *dw, Dwarf_Die str, Dwarf_Off off, tdesc_t *tdp, int type, const char *typename) { - Dwarf_Unsigned sz, bysz, bitsz, bitoff, maxsz=0; + Dwarf_Unsigned sz, bitsz, bitoff, maxsz=0; +#if BYTE_ORDER == _LITTLE_ENDIAN + Dwarf_Unsigned bysz; +#endif Dwarf_Die mem; mlist_t *ml, **mlastp; iidesc_t *ii; |