fixed compiler warning.

Hi,

Fixed compiler warning below while building from source in macOSX.
warning: expression result unused [-Wunused-value]