Fix warnings/errors for strict aliasing & function prototypes
This fixes various issues related to gcc's strict-aliasing warning by using unions. It also handles various cases hit with gcc's missing-declarations warning.
This commit is contained in:
parent
0967748fbc
commit
18b637f9dc
11 changed files with 39 additions and 17 deletions
|
|
@ -96,7 +96,7 @@ protected:
|
|||
// Helper functions for printing, not part of traversing.
|
||||
//
|
||||
|
||||
void OutputTreeText(TInfoSink& infoSink, const TIntermNode* node, const int depth)
|
||||
static void OutputTreeText(TInfoSink& infoSink, const TIntermNode* node, const int depth)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
@ -529,7 +529,7 @@ bool TOutputTraverser::visitSelection(TVisit /* visit */, TIntermSelection* node
|
|||
return false;
|
||||
}
|
||||
|
||||
void OutputConstantUnion(TInfoSink& out, const TIntermTyped* node, const TConstUnionArray& constUnion, int depth)
|
||||
static void OutputConstantUnion(TInfoSink& out, const TIntermTyped* node, const TConstUnionArray& constUnion, int depth)
|
||||
{
|
||||
int size = node->getType().computeNumComponents();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue