|
From: | Fabrice Popineau |
Subject: | Re: Suspicious warning in W64 build |
Date: | Fri, 15 Sep 2017 17:33:48 +0200 |
> From: Fabrice Popineau <address@hiddenlec.fr >
> Date: Fri, 15 Sep 2017 08:55:06 +0200
> Cc: Emacs developers <address@hidden>
>
> # define pDWP "16llx"
> ^
>
> Should these be using the ptrdiff_t formatter pD from lisp.h ?
>
> I'd rather cast the values to "long long unsigned int" as these values are assumed to be positive,
> and would be meaningless if printed in decimal.
That's what I did.
> There are also a bunch of warnings in dispnew.c:adjust_glyph_matrix() That's because they really cannot be NULL at that point. GCC 7
> because the w parameter could be NULL. Actually, some parts of the code
> are protected with if (w) { ... } but much more than those ones assume that
> w is not NULL.
doesn't really understand the code, so it shouldn't emit these
warnings, if it wants them to be useful.
> I wonder if the whole function should not just return if w is NULL.
No!
[Prev in Thread] | Current Thread | [Next in Thread] |