hey it's useless if you don't use the result, and anyway, you'll have another warning : "set but unused variable"
Vincent On Mon, Oct 29, 2012 at 2:33 AM, Enlightenment SVN <no-re...@enlightenment.org> wrote: > Log: > evas/cserve2 - removed warnings > > > > Author: hermet > Date: 2012-10-28 18:33:58 -0700 (Sun, 28 Oct 2012) > New Revision: 78597 > Trac: http://trac.enlightenment.org/e/changeset/78597 > > Modified: > trunk/evas/src/bin/evas_cserve2_slaves.c > > Modified: trunk/evas/src/bin/evas_cserve2_slaves.c > =================================================================== > --- trunk/evas/src/bin/evas_cserve2_slaves.c 2012-10-29 01:22:10 UTC (rev > 78596) > +++ trunk/evas/src/bin/evas_cserve2_slaves.c 2012-10-29 01:33:58 UTC (rev > 78597) > @@ -320,6 +320,7 @@ > _slave_proc_path_get(const char *name) > { > char buf[PATH_MAX], cwd[PATH_MAX]; > + char *ret; > > if (name[0] == '/') > { > @@ -328,7 +329,7 @@ > return eina_stringshare_add(name); > } > > - getcwd(cwd, sizeof(cwd)); > + ret = getcwd(cwd, sizeof(cwd)); > snprintf(buf, sizeof(buf), "%s/%s", cwd, name); > if (!access(buf, X_OK)) > return eina_stringshare_add(buf); > @@ -453,6 +454,7 @@ > _slave_thread_cb(void *data) > { > ssize_t n; > + int ret; > Slave_Command cmd; > > Slave_Thread_Data *sd = data; > @@ -475,7 +477,7 @@ > continue; > } > sd->cmdanswer = sd->cb(sd, &cmd, sd->cmddata, sd->cb_data); > - write(sd->write_fd, &cmd, sizeof(cmd)); > + ret = write(sd->write_fd, &cmd, sizeof(cmd)); > > n = read(sd->read_fd, &cmd, sizeof(cmd)); > } > > > ------------------------------------------------------------------------------ > The Windows 8 Center - In partnership with Sourceforge > Your idea - your app - 30 days. > Get started! > http://windows8center.sourceforge.net/ > what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ > _______________________________________________ > enlightenment-svn mailing list > enlightenment-...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn ------------------------------------------------------------------------------ The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel