[sr-dev] git:master:322102e6: fix compilation warning for gcc 12.x (GH #3073)