pengutronix / genimage

tool to generate multiple filesystem and flash images from a tree
GNU General Public License v2.0
305 stars 110 forks source link

util: Fix warn_unused_result build warnings #165

Closed lbmeng closed 2 years ago

lbmeng commented 3 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