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

Stefan (metze) Metzmacher metze at samba.org
Mon Nov 10 04:42:09 MST 2014


Hi Richard,

a lot of warnings (like this one) are already fixed in my
master4-picky branch, see:
https://git.samba.org/?p=metze/samba/wip.git;a=shortlog;h=refs/heads/master4-picky

They just need to be reviewed and pushed.

metze

Am 09.11.2014 um 19:29 schrieb Richard Sharpe:
> 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.
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20141110/43552169/attachment.pgp>


More information about the samba-technical mailing list