Skip to content

Commit

Permalink
Correct warnings seen as errors by XCode in stringent mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHarker committed Apr 7, 2018
1 parent 9333ccc commit b48a71a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions FrameLib_Exports/FrameLib_Objects.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

#include "FrameLib_Objects.h"

// N.B. This file simply includes the objects that are header only
2 changes: 1 addition & 1 deletion FrameLib_Objects/Generators/FrameLib_Gaussian.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include <FrameLib_Gaussian.h>
#include "FrameLib_Gaussian.h"

// Constructor

Expand Down
4 changes: 2 additions & 2 deletions FrameLib_Objects/Parameters/FrameLib_ParamAlias.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ void FrameLib_ParamAlias::initialise()
unsigned long idx = mParameters.size();
const char *tag = it->mInTag.c_str();
const Parameters *params = (*jt)->getParameters();
unsigned paramIdx = -1;
unsigned long paramIdx = -1;

if ((paramIdx = params->getIdx(it->mOutTag.c_str())) != -1)
if ((paramIdx = params->getIdx(it->mOutTag.c_str())) != unsigned long(-1))
{
double value = params->getDefault(paramIdx);

Expand Down

0 comments on commit b48a71a

Please sign in to comment.