Author ronaldoussoren
Recipients ronaldoussoren
Date 2009-12-25.12:40:17
SpamBayes Score 2.79378e-05
Marked as misclassified No
Message-id <>
When running GCC with warnings the compiler can warn about incomplete 
structure initializers. This gives spurious warnings when initializing a 
PyModuleDef structure using PyModuleDef_HEAD_INIT

The attached patchs changes PyModuleDef_HEAD_INIT to explicitly 
initialize all fields in PyModuleDef_Base.

An example warning that is silenced by this patch:

Modules/objc/test/structpointer2.m:19: warning: missing initializer
Modules/objc/test/structpointer2.m:19: warning: (near initialization for 
Date User Action Args
2009-12-25 12:40:19ronaldoussorensetrecipients: + ronaldoussoren
2009-12-25 12:40:19ronaldoussorensetmessageid: <>
2009-12-25 12:40:18ronaldoussorenlinkissue7576 messages
2009-12-25 12:40:17ronaldoussorencreate