GNOME Bugzilla – Bug 590765
Compiler warning: operation may be undefined
Last modified: 2009-08-06 13:56:03 UTC
Forwarding https://bugzilla.novell.com/show_bug.cgi?id=500379 (this is still valid, afaict) I just tried to build Factory package vino-2.26.1-1.1 and the build said vino-fb.c:445: warning: operation on 'vfb->priv->n_scanline' may be undefined The source code is vfb->priv->n_scanline = ++vfb->priv->n_scanline % N_SCANLINES; I agree with the compiler. Better code would be vfb->priv->n_scanline = (vfb->priv->n_scanline + 1) % N_SCANLINES;
Thanks, suggestion applied.