Patch: Silence a warning by casting one type of const to another ...

Richard Sharpe realrichardsharpe at gmail.com
Sun Nov 9 11:29:45 MST 2014


Hi folks,

In my recent build I saw this error (among others):

[ 724/4070] Compiling lib/texpect/texpect.c
../lib/texpect/texpect.c: In function ‘main’:
../lib/texpect/texpect.c:392:15: warning: assignment from incompatible
pointer type [enabled by default]
  program_args = poptGetArgs(pc);
               ^
The attached patch quietens this error by declaring program_args as
the type that poptGetArgs returns and casts it to what execvp wants.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Silence-a-build-warning-by-casting-one-type-of-const.patch
Type: text/x-patch
Size: 1093 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20141109/c763ed12/attachment.bin>


More information about the samba-technical mailing list