bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22949: lib/set-permissions.o compile fail on Cygwin


From: Eric Blake
Subject: bug#22949: lib/set-permissions.o compile fail on Cygwin
Date: Tue, 8 Mar 2016 14:56:00 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Posting this now for the record, although I'm trying to figure out what
the correct patch should be:

When compiling coreutils 8.25 for cygwin-2.4.1, I got a working
'install' using CFLAGS=-g, but one that refused to install files when
using CFLAGS=-O2.  I finally traced it to:

lib/set-permissions.c: In function 'set_acls_from_mode':
lib/set-permissions.c:273:1: warning: control reaches end of non-void
function [-Wreturn-type]

and based on the choice of CFLAGS, it changed whether I was left with 0
or 1 as a return value from qset_acl().

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]