Loading

Paste #p2qoiab63

  1. /home/lordaro/dev/openttd/src/core/smallstack_type.hpp:221:27: warning: instantiation of
  2.       variable 'SmallStack<unsigned short, unsigned short, 65535, 8, 65533>::_pool' required
  3.       here, but no definition is available [-Wundefined-var-template]
  4.                         ThreadMutexLocker lock(_pool.GetMutex());
  5.                                                ^
  6. /home/lordaro/dev/openttd/src/cargopacket.h:502:32: note: in instantiation of member function
  7.       'SmallStack<unsigned short, unsigned short, 65535, 8, 65533>::Pop' requested here
  8.                         if (this->packets.find(next.Pop()) != this->packets.end()) return true;
  9.                                                     ^
  10. /home/lordaro/dev/openttd/src/core/smallstack_type.hpp:272:24: note: forward declaration of
  11.       template entity is here
  12.         static SmallStackPool _pool;
  13.                               ^
  14. /home/lordaro/dev/openttd/src/core/smallstack_type.hpp:221:27: note: add an explicit
  15.       instantiation declaration to suppress this warning if 'SmallStack<unsigned short,
  16.       unsigned short, 65535, 8, 65533>::_pool' is explicitly instantiated in another
  17.       translation unit
  18.                         ThreadMutexLocker lock(_pool.GetMutex());
  19.                                                ^
  20. 1 warning generated.

Comments