[1.11.x] Fixed #27960 -- Set errcheck=False for GDALAllRegister to prevent crash.

GDALAllRegister returns void so errcheck is not needed.

Backport of 7063a85579 from master
This commit is contained in:
Sergey Fedoseev 2017-03-21 20:45:12 +05:00 committed by Tim Graham
parent e5880516f9
commit a937785e2a
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ const_string_output = partial(const_string_output, cpl=True)
double_output = partial(double_output, cpl=True) double_output = partial(double_output, cpl=True)
# Raster Driver Routines # Raster Driver Routines
register_all = void_output(std_call('GDALAllRegister'), []) register_all = void_output(std_call('GDALAllRegister'), [], errcheck=False)
get_driver = voidptr_output(std_call('GDALGetDriver'), [c_int]) get_driver = voidptr_output(std_call('GDALGetDriver'), [c_int])
get_driver_by_name = voidptr_output(std_call('GDALGetDriverByName'), [c_char_p], errcheck=False) get_driver_by_name = voidptr_output(std_call('GDALGetDriverByName'), [c_char_p], errcheck=False)
get_driver_count = int_output(std_call('GDALGetDriverCount'), []) get_driver_count = int_output(std_call('GDALGetDriverCount'), [])