been initialized".
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9631
a592a061-630c-0410-9148-
cb99ea01b6c8
+2005-02-15 Angus Leeming <leeming@lyx.org>
+
+ * lyxserver.C (startPipe): squash MSVC warning "local variable
+ 'fd' used without having been initialized".
+
2005-02-14 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* BufferView_pimpl.C: revert accidental commit.
2005-02-14 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* BufferView_pimpl.C: revert accidental commit.
int LyXComm::startPipe(string const & filename, bool write)
{
int LyXComm::startPipe(string const & filename, bool write)
{
#ifdef __EMX__
HPIPE os2fd;
APIRET rc;
#ifdef __EMX__
HPIPE os2fd;
APIRET rc;
};
// Imported handles can be used both with OS/2 APIs and emx
// library functions.
};
// Imported handles can be used both with OS/2 APIs and emx
// library functions.
- fd = _imphandle(os2fd);
+ int const fd = _imphandle(os2fd);
#else
if (::access(filename.c_str(), F_OK) == 0) {
lyxerr << "LyXComm: Pipe " << filename << " already exists.\n"
#else
if (::access(filename.c_str(), F_OK) == 0) {
lyxerr << "LyXComm: Pipe " << filename << " already exists.\n"
<< strerror(errno) << endl;
return -1;
};
<< strerror(errno) << endl;
return -1;
};
- fd = ::open(filename.c_str(), write ? (O_RDWR) : (O_RDONLY|O_NONBLOCK));
+ int const fd = ::open(filename.c_str(),
+ write ? (O_RDWR) : (O_RDONLY|O_NONBLOCK));