[Olsr-dev] [PATCH 08/12] p2pd/NetworkInterfaces: remove unused variable

Markus Kittenberger (spam-protected)
Thu Jun 9 15:54:38 CEST 2011


hmm imho it might be better to do the debug output here, just with more
appropriate debug level,..

Markus

On Thu, Jun 9, 2011 at 1:42 PM, Ferry Huberts <(spam-protected)> wrote:

> From: Ferry Huberts <(spam-protected)>
>
> src/NetworkInterfaces.c:413:7: warning: variable ‘nOpened’ set but not used
> [-Wunused-but-set-variable]
>
> Signed-off-by: Ferry Huberts <(spam-protected)>
> ---
>  lib/p2pd/src/NetworkInterfaces.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/p2pd/src/NetworkInterfaces.c
> b/lib/p2pd/src/NetworkInterfaces.c
> index fa59d56..6650134 100644
> --- a/lib/p2pd/src/NetworkInterfaces.c
> +++ b/lib/p2pd/src/NetworkInterfaces.c
> @@ -410,11 +410,11 @@ CreateNonOlsrNetworkInterfaces(struct interface
> *skipThisIntf)
>  void
>  AddInterface(struct interface *newIntf)
>  {
> -  int nOpened;
> +  /* int nOpened; */
>
>   assert(newIntf != NULL);
>
> -  nOpened = CreateInterface(newIntf->int_name, newIntf);
> +  /* nOpened = */ (void)CreateInterface(newIntf->int_name, newIntf);
>
>   //OLSR_PRINTF(1, "%s: opened %d sockets\n", PLUGIN_NAME, nOpened);
>  }                               /* AddInterface */
> --
> 1.7.5.2
>
>
> --
> Olsr-dev mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20110609/7a9e509a/attachment.html>


More information about the Olsr-dev mailing list