Closed lbmeng closed 2 years ago
util: Fix warn_unused_result build warnings
The call to asprintf() in uuid_random() does not check return value, and causes GCC -Wunused-result warning with GCC 9.3.0 on Ubuntu 20.04.
Change to use xasprintf() instead.
Signed-off-by: Bin Meng bmeng.cn@gmail.com
util: Fix warn_unused_result build warnings
The call to asprintf() in uuid_random() does not check return value, and causes GCC -Wunused-result warning with GCC 9.3.0 on Ubuntu 20.04.
Change to use xasprintf() instead.
Signed-off-by: Bin Meng bmeng.cn@gmail.com