suppress compiler warnings in _ctypes_test (#902)

Changed test code to suppress a compiler warning, while taking care to avoid the code being optimized out by the compiler.
1 file changed