Loading

Paste #pux50pe54

  1. [SRC] Compiling fios.cpp
  2. In file included from /home/lordaro/dev/openttd/src/fios.cpp:15:0:
  3. /home/lordaro/dev/openttd/src/fios.cpp: In member function ‘void FileList::BuildFileList(AbstractFileType, SaveLoadOperation)’:
  4. /home/lordaro/dev/openttd/src/fios.cpp:79:28: warning: enum constant in boolean context [-Wint-in-bool-context]
  5.   assert(fop == SLO_LOAD || SLO_SAVE);
  6.                             ^
  7. /home/lordaro/dev/openttd/src/stdafx.h:457:35: note: in definition of macro ‘assert’
  8.   #define assert(expression) if (!(expression)) error("Assertion failed at line %i of %s: %s", __LINE__, __FILE__, #expression);
  9.                                    ^~~~~~~~~~
  10. /home/lordaro/dev/openttd/src/fios.cpp: In function ‘void FiosGetFileList(SaveLoadOperation, FiosType (*)(SaveLoadOperation, const char*, const char*, char*, const char*), Subdirectory, FileList&)’:
  11. /home/lordaro/dev/openttd/src/fios.cpp:400:77: error: no matching function for call to ‘sort(FiosItem*, FiosItem*, <unresolved overloaded function type>)’
  12.    std::sort(file_list.files.Begin(), file_list.files.End(), CompareFiosItems);
  13.                                                                              ^
  14. In file included from /usr/include/c++/7.1.1/algorithm:62:0,
  15.                  from /home/lordaro/dev/openttd/src/core/smallmap_type.hpp:15,
  16.                  from /home/lordaro/dev/openttd/src/newgrf_config.h:17,
  17.                  from /home/lordaro/dev/openttd/src/fios.h:17,
  18.                  from /home/lordaro/dev/openttd/src/fios.cpp:16:
  19. /usr/include/c++/7.1.1/bits/stl_algo.h:4826:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)
  20.      sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
  21.      ^~~~
  22. /usr/include/c++/7.1.1/bits/stl_algo.h:4826:5: note:   template argument deduction/substitution failed:
  23. /home/lordaro/dev/openttd/src/fios.cpp:400:77: note:   candidate expects 2 arguments, 3 provided
  24.    std::sort(file_list.files.Begin(), file_list.files.End(), CompareFiosItems);
  25.                                                                              ^
  26. In file included from /usr/include/c++/7.1.1/algorithm:62:0,
  27.                  from /home/lordaro/dev/openttd/src/core/smallmap_type.hpp:15,
  28.                  from /home/lordaro/dev/openttd/src/newgrf_config.h:17,
  29.                  from /home/lordaro/dev/openttd/src/fios.h:17,
  30.                  from /home/lordaro/dev/openttd/src/fios.cpp:16:
  31. /usr/include/c++/7.1.1/bits/stl_algo.h:4856:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
  32.      sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
  33.      ^~~~
  34. /usr/include/c++/7.1.1/bits/stl_algo.h:4856:5: note:   template argument deduction/substitution failed:
  35. /home/lordaro/dev/openttd/src/fios.cpp:400:77: note:   couldn't deduce template parameter ‘_Compare’
  36.    std::sort(file_list.files.Begin(), file_list.files.End(), CompareFiosItems);
  37.                                                                              ^
  38. /home/lordaro/dev/openttd/src/fios.cpp:415:72: error: no matching function for call to ‘sort(FiosItem*, const FiosItem*, <unresolved overloaded function type>)’
  39.   std::sort(file_list.Get(sort_start), file_list.End(), CompareFiosItems);
  40.                                                                         ^
  41. In file included from /usr/include/c++/7.1.1/algorithm:62:0,
  42.                  from /home/lordaro/dev/openttd/src/core/smallmap_type.hpp:15,
  43.                  from /home/lordaro/dev/openttd/src/newgrf_config.h:17,
  44.                  from /home/lordaro/dev/openttd/src/fios.h:17,
  45.                  from /home/lordaro/dev/openttd/src/fios.cpp:16:
  46. /usr/include/c++/7.1.1/bits/stl_algo.h:4826:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)
  47.      sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
  48.      ^~~~
  49. /usr/include/c++/7.1.1/bits/stl_algo.h:4826:5: note:   template argument deduction/substitution failed:
  50. /home/lordaro/dev/openttd/src/fios.cpp:415:72: note:   deduced conflicting types for parameter ‘_RAIter’ (‘FiosItem*’ and ‘const FiosItem*’)
  51.   std::sort(file_list.Get(sort_start), file_list.End(), CompareFiosItems);
  52.                                                                         ^
  53. In file included from /usr/include/c++/7.1.1/algorithm:62:0,
  54.                  from /home/lordaro/dev/openttd/src/core/smallmap_type.hpp:15,
  55.                  from /home/lordaro/dev/openttd/src/newgrf_config.h:17,
  56.                  from /home/lordaro/dev/openttd/src/fios.h:17,
  57.                  from /home/lordaro/dev/openttd/src/fios.cpp:16:
  58. /usr/include/c++/7.1.1/bits/stl_algo.h:4856:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
  59.      sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
  60.      ^~~~
  61. /usr/include/c++/7.1.1/bits/stl_algo.h:4856:5: note:   template argument deduction/substitution failed:
  62. /home/lordaro/dev/openttd/src/fios.cpp:415:72: note:   deduced conflicting types for parameter ‘_RAIter’ (‘FiosItem*’ and ‘const FiosItem*’)
  63.   std::sort(file_list.Get(sort_start), file_list.End(), CompareFiosItems);
  64.                                                                         ^
  65. make[1]: *** [Makefile:235: fios.o] Error 1
  66. make[1]: Leaving directory '/home/lordaro/dev/openttd/objs/release'
  67. make: *** [Makefile:56: all] Error 1

Comments