[Libwebsockets] Minor warning fix for lib/libwebsockets.h

Andy Green andy at warmcat.com
Mon Oct 10 14:16:27 CEST 2016


On Mon, 2016-10-10 at 10:09 +0000, Joerg Pommnitz wrote:
> Seems the attachment got scrubbed, so here is the patch inlined:

Thanks, it arrived here in the original mail.

It seems only some compilers care about this, but it is correct it
should have the explicit void.

It's pushed on v2.0-stable, v2.1-stable and master.

BTW although I appreciate fixes and new stuff however they come,
generally for projects using git and mailing lists they want

a) git-formatted patches (diff -urN if you must do it by hand, or just
git diff if that's all you changed)

b) A From: line with your name and <email>, and a single subject line.

It looks like in your case git got "subverted" ^^ but anyway FYI.

-Andy

> Index: lib/libwebsockets.h
> ===================================================================
> --- lib/libwebsockets.h	(revision 5972)
> +++ lib/libwebsockets.h	(working copy)
> @@ -1217,7 +1217,7 @@
> * client and server for how to do.
> */
> static LWS_INLINE LWS_WARN_DEPRECATED const struct lws_extension *
> -lws_get_internal_extensions() { return NULL; }
> +lws_get_internal_extensions(void) { return NULL; }
> 
> /**
> * lws_ext_parse_options() - deal with parsing negotiated extension
> options
> 
> 
>  -- Regards       Joerg
> 
> 
> 
> > 
> > Joerg Pommnitz <pommnitz at yahoo.com> schrieb am 12:02 Montag,
> > 10.Oktober 2016:
> > > 
> > > Hello all,
> > 
> > the attached very minor patch is needed to shut up warnings when
> > including 
> > libwebsockets.h.
> > 
> > -- Regards       Joerg
> > 
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://libwebsockets.org/mailman/listinfo/libwebsockets



More information about the Libwebsockets mailing list