Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-02-04 04:47:31


Beman, I've just got the following:

gcc.compile
../../../libs/filesystem/build/bin/gcc-3.2/release/link-static/operations_posix_windows.o
../../../libs/filesystem/src/operations_posix_windows.cpp: In member function
    `boost::filesystem::directory_iterator::directory_iterator(const
    boost::filesystem::path&)':
../../../libs/filesystem/src/operations_posix_windows.cpp:210: warning: `const
    char*name' might be used uninitialized in this function
../../../libs/filesystem/src/operations_posix_windows.cpp: In member function
    `boost::filesystem::directory_iterator::directory_iterator(const
    boost::filesystem::path&)':
../../../libs/filesystem/src/operations_posix_windows.cpp:210: warning: `const
    char*name' might be used uninitialized in this function
../../../libs/filesystem/src/operations_posix_windows.cpp: In function `void
    boost::filesystem::copy_file(const boost::filesystem::path&, const
    boost::filesystem::path&)':
../../../libs/filesystem/src/operations_posix_windows.cpp:383: warning: `int
    outfile' might be used uninitialized in this function

This shows up during release builds only. I've looked at warnings, and
in first case gcc is just not smart enough -- but would be nice to eliminate
the warning. In the other case the warning is correct, AFAICT.

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk