tttrace: Fix bad usage of va_arg with enums
authorFrederic Koehler <f.koehler427@gmail.com>
Sat, 11 Aug 2012 21:15:39 +0000 (17:15 -0400)
committerJon Trulson <jon@radscan.com>
Sun, 12 Aug 2012 02:13:46 +0000 (20:13 -0600)
commit5ad7a839853e1f565fd7a231fba236df691cacdf
treef28499bfcc5eb6ef1e7c8591224862c1ac53552b
parent71f3ed16f8dc4f6309b0ef5eff51377cb0b0f0ed
tttrace: Fix bad usage of va_arg with enums

Enums may be represented with a smaller type than int; however, they are
automatically promoted to int when passed in va_arg lists, just as
short, char, etc. are. GCC thus "knows" that you never want to call
va_arg with an enum type, and instead inserts an abort.
cde/lib/tt/lib/util/tt_trace.C