[shared] fix compiler warnings regarding __local_name