xscope fixes

Thomas Klausner tk at giga.or.at
Tue Dec 7 19:48:54 UTC 2021


On Tue, Dec 07, 2021 at 10:47:35AM -0800, Alan Coopersmith wrote:
> On 12/6/21 11:59 PM, Thomas Klausner wrote:
> > When updating the pkgsrc patches to 1.4.2, I noticed quite a lot of warnings.
> > Here are patches that remove most.
> 
> Thanks - since we've switched from email to gitlab for patch submission, I've
> converted these to a merge request at:
> https://gitlab.freedesktop.org/xorg/app/xscope/-/merge_requests/5

Oh, I didn't know that. Thanks. I'll take a closer look at that for future fixes.

> > ../fd.c: In function ‘MainLoop’:
> > ../fd.c:432:1: warning: function might be candidate for attribute ‘noreturn’ [-Wsuggest-attribute=noreturn]
> >    432 | MainLoop(void)
> >        | ^~~~~~~~
> > 
> > is unfixed since I could mark it _X_NORETURN but then I'd have to remove
> > the "return 0" at the end too -- is tha tok?
> 
> I think so.

Ok, the attached patch fixes this one as well.
 Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Mark-MainLoop-as-_X_NORETURN.patch
Type: text/x-diff
Size: 866 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20211207/fdfdc38e/attachment.patch>


More information about the xorg-devel mailing list