Kaydet (Commit) 164d30eb authored tarafından Benjamin Peterson's avatar Benjamin Peterson Kaydeden (comit) Vinay Sajip

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.
üst cdcac039
......@@ -52,9 +52,9 @@ _testfunc_cbk_large_struct(Test in, void (*func)(Test))
EXPORT(void)
_testfunc_large_struct_update_value(Test in)
{
in.first = 0x0badf00d;
in.second = 0x0badf00d;
in.third = 0x0badf00d;
((volatile Test *)&in)->first = 0x0badf00d;
((volatile Test *)&in)->second = 0x0badf00d;
((volatile Test *)&in)->third = 0x0badf00d;
}
EXPORT(void)testfunc_array(int values[4])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment