Esin Andrey <[EMAIL PROTECTED]> writes: > Hi! > I have downloaded wget-1.10.2 sources and try to compile it. > I have some warnings: > > /|init.c: In function ‘cmd_spec_prefer_family’ > init.c:1193: warning: доступ по указателю с приведением типа нарушает правила > перекрытия объектов в памяти > > |/I have wrote patch which correct this warnings (It is in attach)
Thank you for the report. I don't understand the warning, but there are problems with your patch. You cannot cast opt.prefer_family to int * because the value of opt.prefer_family is not a pointer. Likewise, you cannot change assignment to *place to assignment to place, since then you're only changing the value of a local variable, rendering the code no-op. I agree that warnings should be fixed, but one must be careful not to break code in the process.