diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-03-12 23:52:22 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-03-14 20:25:13 +0100 |
| commit | 643a5237908cbb40fd592ac6bfec9a095c267f6e (patch) | |
| tree | 0bf628df2903384abd067d9fd58e0e74b35e4cc1 /src/pj_gridinfo.c | |
| parent | e5cf02937189b011f387e5b618ce73d6e296a38d (diff) | |
| download | PROJ-643a5237908cbb40fd592ac6bfec9a095c267f6e.tar.gz PROJ-643a5237908cbb40fd592ac6bfec9a095c267f6e.zip | |
Avoid 'Found calculation inside sizeof()' false positive with older cppcheck versions
Diffstat (limited to 'src/pj_gridinfo.c')
| -rw-r--r-- | src/pj_gridinfo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pj_gridinfo.c b/src/pj_gridinfo.c index 664effdc..e5e08c92 100644 --- a/src/pj_gridinfo.c +++ b/src/pj_gridinfo.c @@ -422,7 +422,9 @@ static int pj_gridinfo_init_ntv2( projCtx ctx, PAFile fid, PJ_GRIDINFO *gilist ) int num_subfiles, subfile; int must_swap; + /* cppcheck-suppress sizeofCalculation */ STATIC_ASSERT( sizeof(pj_int32) == 4 ); + /* cppcheck-suppress sizeofCalculation */ STATIC_ASSERT( sizeof(double) == 8 ); /* -------------------------------------------------------------------- */ @@ -645,7 +647,9 @@ static int pj_gridinfo_init_ntv1( projCtx ctx, PAFile fid, PJ_GRIDINFO *gi ) struct CTABLE *ct; LP ur; + /* cppcheck-suppress sizeofCalculation */ STATIC_ASSERT( sizeof(pj_int32) == 4 ); + /* cppcheck-suppress sizeofCalculation */ STATIC_ASSERT( sizeof(double) == 8 ); /* -------------------------------------------------------------------- */ @@ -730,7 +734,9 @@ static int pj_gridinfo_init_gtx( projCtx ctx, PAFile fid, PJ_GRIDINFO *gi ) double xorigin,yorigin,xstep,ystep; int rows, columns; + /* cppcheck-suppress sizeofCalculation */ STATIC_ASSERT( sizeof(pj_int32) == 4 ); + /* cppcheck-suppress sizeofCalculation */ STATIC_ASSERT( sizeof(double) == 8 ); /* -------------------------------------------------------------------- */ |
