Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc 3.4.6 OS: Solaris (This is a problem with kdebase's build process, but kdebase cannot be picked as an application in bugs.kde.org, so I picked kwin as an arbitrary app in kdebase.) The file kdebase/config.h.cmake has a prototype for unsetenv when the system does not provide one. Unfortunately it incorrectly specifies the return type as void when it should be int. Why doesn't kdebase rely on the unsetenv prototype provided in kdefakes.h by including that file where unsetenv is used rather than duplicating the prototype?
Created attachment 20603 [details] Change unsetenv to return int rather than void
Created attachment 20604 [details] Change unsetenv to return int rather than void (correct version) Sorry, I supplied the wrong file in the previous attachment
SVN commit 665654 by lunakl: unsetenv() returns int. I wonder why we have the prototype in config.h? CCMAIL: kde-core-devel@kde.org BUG: 145560 M +1 -1 config.h.cmake --- trunk/KDE/kdebase/config.h.cmake #665653:665654 @@ -134,7 +134,7 @@ #ifdef __cplusplus extern "C" { #endif -void unsetenv (const char *); +int unsetenv (const char *); #ifdef __cplusplus } #endif