[Helix-client-dev] empty va_list for gcc-4.4

Renjie Huang <[email protected]> Tue, 1 Jun 2010 14:43:16 -0700
Newsgroups gmane.comp.multimedia.helix.devel
Message-ID <[email protected]>
Hi

When I compiled Helix for Beagleboard using toolchain arm-android-eabi-4.4.1, there are errors related to the file common/log/logsystem/hxtwritermanager.cpp. The reason is that the mangling of va_list in  G++-4.4.1 is changed, so we can not define an empty va_list as NULL.
The compilation can pass with the following change:

				   Change:
				   	DEFINE_NULL_VA_LIST;
				   	return LogMessage(szNamespace, nLogCode, nFuncArea, nMsg, szMsg, NULL_VA_LIST);
				   To:
				   	va_list ap;
				   	return LogMessage(szNamespace, nLogCode, nFuncArea, nMsg, szMsg, ap);

However, I feel that it may not be the right way to define an empty va_list for g++-4.4 . Did someone have this problem before? Is there any advice? Thanks.