[sr-dev] git:master:263b8ce5: tm: rework code to avoid compiler warnings