Re: GCC warning: correct?
David Kastrup <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Organization | Organization?!? |
| Message-ID | <[email protected]> |
David Kastrup <[email protected]> writes: > cairo-surface.c: In function ‘cairo_surface_create_similar’: > cairo-surface.c:508:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] > if (unlikely (! CAIRO_CONTENT_VALID (content))) > ^~ > cairo-surface.c:511:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ > if (unlikely (other->status)) > ^~ > > And another one? cairo-script-operators.c: In function ‘_set_dash’: cairo-script-operators.c:4813:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (_csi_unlikely ((unsigned) array->stack.len >= INT_MAX / sizeof (double))) ^~ cairo-script-operators.c:4815:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ dashes = _csi_alloc (ctx, sizeof (double) * array->stack.len); ^~~~~~ -- David Kastrup -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo