[LyX/master] InsetMathFont: harden the new switches against unexpected values.

Scott Kostyshak skostysh at lyx.org
Fri Nov 1 14:44:33 UTC 2024


On Wed, Oct 30, 2024 at 12:59:14AM GMT, Thibaut Cuvelier wrote:
> commit 110e654b67cdc7399defa38b32810cf9e78ff95b
> Author: Thibaut Cuvelier <tcuvelier at lyx.org>
> Date:   Wed Oct 30 01:55:22 2024 +0100
> 
>     InsetMathFont: harden the new switches against unexpected values.
> ---

I now get the following:

/home/scott/lyxbuilds/master-master/repo/src/mathed/InsetMathFont.cpp:133:60: error: overlapping comparisons always evaluate to true [-Werror,-Wtautological-overlap-compare]
  133 |                 if (span_class.empty() && (family_ != MATH_NORMAL_FAMILY || family_ != MATH_DOUBLE_STRUCK_FAMILY)) {
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20241101/f08123c2/attachment.sig>


More information about the lyx-devel mailing list