Changeset 2055


Ignore:
Timestamp:
Sep 8, 2009, 8:23:43 PM (11 years ago)
Author:
Peter
Message:

fixed some warnings from gcc 4.3.1 and added some missing includes. There are still some warnings for test/commandline_test.cc, but not obvious how to fix them.

Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Suite.cc

    r2035 r2055  
    2828#include <fstream>
    2929#include <iostream>
     30#include <limits>
    3031#include <sstream>
    3132#include <string>
  • trunk/test/data_lookup_1d_test.cc

    r1797 r2055  
    3232#include <fstream>
    3333#include <iostream>
     34#include <limits>
    3435#include <vector>
    3536#include <cmath>
  • trunk/test/fileutil_test.cc

    r1797 r2055  
    4747    bool testval=true;
    4848    utility::FileUtil file(".");
    49     if (testval=file.exists())
     49    if ((testval=file.exists()))
    5050      suite.err() << "\tfile exists: " << file.path() << std::endl;
    5151    suite.add(testval);
     
    133133      suite.err() << "\tr permission failed on " << file.path() << std::endl;
    134134    suite.add(testval);
    135     if (testval=file.permissions("rwx"))
     135    if ((testval=file.permissions("rwx")))
    136136      suite.err() << "\trwx permissions failed on " << file.path() << std::endl;
    137137    suite.add(testval);
    138     if (testval=file.permissions("w"))
     138    if ((testval=file.permissions("w")))
    139139      suite.err() << "\tw permission failed on " << file.path() << std::endl;
    140140    suite.add(testval);
    141     if (testval=file.permissions("d"))
     141    if ((testval=file.permissions("d")))
    142142      suite.err() << "\td permission failed on " << file.path() << std::endl;
    143143    suite.add(testval);
  • trunk/test/large_file_test.cc

    r1797 r2055  
    2727#include "Suite.h"
    2828
     29#include <limits>
    2930#include <string>
    3031#include <sys/stat.h>
  • trunk/yat/classifier/KNN.h

    r1875 r2055  
    3535
    3636#include <cmath>
     37#include <limits>
    3738#include <map>
    3839#include <stdexcept>
  • trunk/yat/classifier/SvmMultiClass.cc

    r1865 r2055  
    2828
    2929#include <cassert>
    30 #include <climits>
     30#include <limits>
    3131
    3232namespace theplu {
  • trunk/yat/normalizer/qQuantileNormalizer.h

    r2006 r2055  
    3333#include <cmath>
    3434#include <iterator>
     35#include <limits>
    3536#include <numeric>
    3637#include <stdexcept>
  • trunk/yat/statistics/FoldChange.h

    r1797 r2055  
    2828namespace theplu {
    2929namespace yat {
    30   class utility::VectorBase;
     30namespace utility {
     31  class VectorBase;
     32}
    3133namespace statistics {
    3234
  • trunk/yat/statistics/KolmogorovSmirnov.h

    r1886 r2055  
    2424*/
    2525
     26#include <iosfwd>
    2627#include <set>
    2728#include <vector>
  • trunk/yat/statistics/utility.cc

    r1797 r2055  
    3131#include <algorithm>
    3232#include <cassert>
     33#include <limits>
    3334
    3435namespace theplu {
  • trunk/yat/utility/FileUtil.cc

    r2013 r2055  
    3333#include <cerrno>
    3434#include <cstddef>
     35#include <cstring>
    3536#include <iostream>
    3637#include <stdexcept>
  • trunk/yat/utility/OptionFile.cc

    r2049 r2055  
    2525#include "FileUtil.h"
    2626
     27#include <cstring>
    2728#include <string>
    2829
  • trunk/yat/utility/OptionHelp.cc

    r2046 r2055  
    2323#include "CommandLine.h"
    2424
     25#include <cstdlib>
    2526#include <iostream>
    2627#include <string>
  • trunk/yat/utility/utility.h

    r1971 r2055  
    205205    if (is_equal(s, "inf"))
    206206      return std::numeric_limits<T>::infinity();
    207     if (is_equal(s, "-inf"))
     207    if (is_equal(s, "-inf")) {
    208208      if (std::numeric_limits<T>::is_signed)
    209209        return -std::numeric_limits<T>::infinity();
     
    211211        throw std::runtime_error(std::string("yat::utility::convert(\"")+s+
    212212                                 std::string("\"): type is unsigned") );
     213    }
    213214    std::stringstream ss(s);
    214215    T a;
Note: See TracChangeset for help on using the changeset viewer.