Author ronaldoussoren
Recipients ronaldoussoren
Date 2009-12-25.12:40:17
SpamBayes Score 2.79378e-05
Marked as misclassified No
Message-id <1261744819.66.0.987087888755.issue7576@psf.upfronthosting.co.za>
In-reply-to
Content
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 
‘mod_module.m_base.m_init’)
History
Date User Action Args
2009-12-25 12:40:19ronaldoussorensetrecipients: + ronaldoussoren
2009-12-25 12:40:19ronaldoussorensetmessageid: <1261744819.66.0.987087888755.issue7576@psf.upfronthosting.co.za>
2009-12-25 12:40:18ronaldoussorenlinkissue7576 messages
2009-12-25 12:40:17ronaldoussorencreate