[PATCH] dc-rhev-image: don't ignore setregid or setreuid failure

Jim Meyering jim at meyering.net
Tue Aug 21 12:31:17 UTC 2012


I saw these new warnings on rawhide (glibc-2.16.90-2.fc19.x86_64):

    dc-rhev-image.c: In function 'copyimage':
    dc-rhev-image.c:1911:11: error: ignoring return value of 'setregid',\
      declared with attribute warn_unused_result [-Werror=unused-result]
    dc-rhev-image.c:1912:11: error: ignoring return value of 'setreuid',\
      declared with attribute warn_unused_result [-Werror=unused-result]
    cc1: all warnings being treated as errors
    make[2]: *** [dc_rhev_image-dc-rhev-image.o] Error 1

Here's the fix:



More information about the iwhd-devel mailing list