Skip to content

Commit

Permalink
Merge branch 'pixelfunctions-integration' into enhance-complex-datase…
Browse files Browse the repository at this point in the history
…ts-with-pf
  • Loading branch information
jmichel-otb committed Jul 7, 2016
2 parents db55680 + e8cb1ae commit afed253
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions autotest/gdrivers/pixfun.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def pixfun_sum_c():
if refds is None:
gdaltest.post_reason('Unable to open "%s" dataset.' % reffilename)
return 'fail'
refdata += refds.GetRasterBand(1).ReadAsArray(0, 0, 5, 6)
refdata += refds.GetRasterBand(1).ReadAsArray(0, 0, 5, 6)

if not numpy.alltrue(data == refdata):
return 'fail'
Expand Down Expand Up @@ -452,7 +452,7 @@ def pixfun_mul_r():
if refds is None:
gdaltest.post_reason('Unable to open "%s" dataset.' % reffilename)
return 'fail'
refdata *= refds.GetRasterBand(1).ReadAsArray()
refdata *= refds.GetRasterBand(1).ReadAsArray()

if not numpy.alltrue(data == refdata):
return 'fail'
Expand Down
2 changes: 1 addition & 1 deletion gdal/frmts/vrt/gdal_vrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
CPL_C_START

void GDALRegister_VRT();
CPLErr CPL_STDCALL GDALRegisterDefaultPixelFunc();
CPLErr CPL_STDCALL GDALRegisterDefaultPixelFunc(void);

typedef CPLErr
(*VRTImageReadFunc)( void *hCBData,
Expand Down
2 changes: 1 addition & 1 deletion gdal/frmts/vrt/pixelfunctions.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ static CPLErr dB2PowPixelFunc(void **papoSources, int nSources, void *pData,
*
* @return CE_None, invalid (NULL) parameters are currently ignored.
*/
CPLErr CPL_STDCALL GDALRegisterDefaultPixelFunc()
CPLErr CPL_STDCALL GDALRegisterDefaultPixelFunc(void)
{
GDALAddDerivedBandPixelFunc("real", RealPixelFunc);
GDALAddDerivedBandPixelFunc("imag", ImagPixelFunc);
Expand Down

0 comments on commit afed253

Please sign in to comment.