]> git.eshelyaron.com Git - emacs.git/commit
* lisp/cedet/semantic/bovine/c.el (semantic-tag-protection): Silence warning
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 2 Dec 2021 03:59:35 +0000 (22:59 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 2 Dec 2021 03:59:35 +0000 (22:59 -0500)
commitaaf0e62048e9d19d9ec6c403b45ab4a878df512c
treefb4414b4cf5f74d1a4485d4277e7626d8c083405
parentc6dd8dd22338fddb68a8284a63302c712824f598
* lisp/cedet/semantic/bovine/c.el (semantic-tag-protection): Silence warning

We used to get

    cedet/semantic/bovine/c.el:1462:25: Warning: value returned from
    (string= s "static") is unused

* lisp/cedet/semantic/bovine/c.el (semantic-tag-protection): Merge two
`when` into an `if` and set `prot` instead of throwing away a result.
Use `pcase` while we're at it.
lisp/cedet/semantic/bovine/c.el