fix(style): complie warning

This commit is contained in:
TinyOh 2019-01-28 13:08:35 +08:00
parent 4552743c4b
commit 3549e8b958
2 changed files with 6 additions and 1 deletions

View File

@ -22,6 +22,7 @@
#include <opencv2/core/eigen.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "camodocal/gpl/gpl.h"
#include "mynteye/logger.h"
namespace camodocal {
#define PI M_PI
@ -506,7 +507,8 @@ void EquidistantCamera::setParameters(
void EquidistantCamera::readParameters(
const std::vector<double> &parameterVec) {
if (parameterVec.size() != parameterCount()) {
if (parameterVec.size() != static_cast<unsigned int>(parameterCount())) {
MYNTEYE_UNUSED(parameterVec);
return;
}

View File

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "camodocal/gpl/gpl.h"
#include "mynteye/logger.h"
#include <set>
#ifdef _WIN32
@ -685,10 +686,12 @@ void UTMtoLL(
double N1, T1, C1, R1, D, M;
double LongOrigin;
double mu, phi1, phi1Rad;
MYNTEYE_UNUSED(phi1);
double x, y;
int ZoneNumber;
char ZoneLetter;
bool NorthernHemisphere;
MYNTEYE_UNUSED(NorthernHemisphere);
x = utmEasting - 500000.0; // remove 500,000 meter offset for longitude
y = utmNorthing;