[PATCH] kdelibs/kdecore/kpty fix

Benjamin Reed ranger at befunk.com
Mon Jan 12 14:08:44 GMT 2004

The version of gcc on my mac doesn't like the way gid_t gid and group* p 
are initialized:

kpty.cpp: In member function `bool KPty::open()':
kpty.cpp:278: warning: jump to label `gotpty2'
kpty.cpp:210: warning:   from here
kpty.cpp:273: error:   crosses initialization of `gid_t gid'
kpty.cpp:272: error:   crosses initialization of `group*p'
make[3]: *** [kpty.lo] Error 1

...this patch fixes it.  Not sure why it's necessary, it seems like 
Apple's gcc is inappropriately pedantic, but it seems a safe enough 
change.  =)

Benjamin Reed a.k.a. Ranger Rick -- http://ranger.befunk.com/
gpg: 6401 D02A A35F 55E9 D7DD  71C5 52EF A366 D3F6 65FE

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kpty.patch
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040112/5113ca87/attachment.ksh>

More information about the kde-core-devel mailing list