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

Richard Sharpe realrichardsharpe at
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.

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: <>

More information about the samba-technical mailing list