Fix warning "Ignored return value"

Bug: 263456849
Test: atest compatibility-common-util-tests
Change-Id: Ibf40753622af771abac40e918aacbd011cd74edc
8 files changed