Skip to content

Commit

Permalink
Enable -pedantic on *nix (#82)
Browse files Browse the repository at this point in the history
Using `-pedantic` threw warnings on `g++`. This commit cleans up those
warnings.
  • Loading branch information
bhardwajs authored Mar 30, 2022
1 parent c837314 commit 5227291
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ else()
-fno-omit-frame-pointer
-fvisibility=hidden # By default, hide symbols on ELF binaries
-g # add debug symbols for build pdb
-pedantic
)

# AppleClang is not accepting -flto as linker option
Expand Down
8 changes: 4 additions & 4 deletions api/pictapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PictCreateTask()
{
Task* taskObj = new Task();
return( static_cast<PICT_HANDLE>( taskObj ) );
};
}

//
//
Expand Down Expand Up @@ -229,7 +229,7 @@ PictDeleteTask
{
Task* taskObj = static_cast<Task*>( NO_CONST_HANDLE( task ));
delete( taskObj );
};
}

//
//
Expand All @@ -247,7 +247,7 @@ PictCreateModel
randomSeed );

return( static_cast<PICT_HANDLE>( modelObj ));
};
}

//
//
Expand Down Expand Up @@ -335,7 +335,7 @@ PictAttachChildModel
{
return( PICT_OUT_OF_MEMORY );
}
};
}

//
//
Expand Down

0 comments on commit 5227291

Please sign in to comment.