# HG changeset patch # User Martin von Zweigbergk # Date 1631835736 25200 # Node ID 2018753014becef7df8d01aef5ef0733b7eb5c3e # Parent ec178161a8d123e1ffd555a5e2811f7deb223a76 dirstate: fix compilation warnings in `dirstate_item_set_possibly_dirty()` Since https://phab.mercurial-scm.org/D11387 (i.e. the same patch as mentioned in my previous patch), Clang has also started warning about `dirstate_item_set_possibly_dirty()` missing an explicit return, and about its use of the result of an assignment as a condition without using parentheses. This patch fixes that. Differential Revision: https://phab.mercurial-scm.org/D11445 diff -r ec178161a8d1 -r 2018753014be mercurial/cext/parsers.c --- a/mercurial/cext/parsers.c Thu Sep 16 16:29:55 2021 -0700 +++ b/mercurial/cext/parsers.c Thu Sep 16 16:42:16 2021 -0700 @@ -488,9 +488,8 @@ to make sure it is correct. */ static PyObject *dirstate_item_set_possibly_dirty(dirstateItemObject *self) { - if (self->flags |= dirstate_flag_possibly_dirty) { - Py_RETURN_NONE; - } + self->flags |= dirstate_flag_possibly_dirty; + Py_RETURN_NONE; } /* See docstring of the python implementation for details */