Added detection for clang compiler and fixed various warnings triggered by it (bug 4878, r=dvander).

This commit is contained in:
Scott Ehlert
2011-04-23 21:53:53 -05:00
parent 0b06d3412e
commit 939bc00b2b
14 changed files with 26 additions and 22 deletions
+2 -2
View File
@@ -103,7 +103,7 @@ CallConvention CallWrapper::GetCallConvention()
const PassEncode *CallWrapper::GetParamInfo(unsigned int num)
{
if (num + 1 > GetParamCount() || num < 0)
if (num + 1 > GetParamCount())
{
return NULL;
}
@@ -170,7 +170,7 @@ SourceHook::ProtoInfo::CallConvention CallWrapper::GetSHCallConvention()
const SourceHook::PassInfo * CallWrapper::GetSHParamInfo(unsigned int num)
{
if (num + 1 > GetParamCount() || num < 0)
if (num + 1 > GetParamCount())
{
return NULL;
}