Item12996: fix use of a constant in void context