Various build fixes when using newer GCC versions with warnings enabled

Encountered with GCC-4.7.3 in a build environment where warnings are enabled
and treated as errors.
This commit is contained in:
Mark Adams 2015-10-26 12:38:46 -04:00
parent fac0d1c72b
commit c11e95f6e5
2 changed files with 6 additions and 6 deletions

View file

@ -242,7 +242,7 @@ TVariable::TVariable(const TVariable& copyOf) : TSymbol(copyOf)
userType = copyOf.userType;
numExtensions = 0;
extensions = 0;
if (copyOf.numExtensions > 0)
if (copyOf.numExtensions != 0)
setExtensions(copyOf.numExtensions, copyOf.extensions);
if (! copyOf.unionArray.empty()) {