Loading

gcc8 warnings

  1. [SRC] DEP CHECK (all files)
  2. [SRC] Compiling 3rdparty/md5/md5.cpp
  3. [SRC] Compiling 3rdparty/squirrel/sqstdlib/sqstdaux.cpp
  4. [SRC] Compiling 3rdparty/squirrel/sqstdlib/sqstdmath.cpp
  5. [SRC] Compiling 3rdparty/squirrel/squirrel/sqapi.cpp
  6. [SRC] Compiling 3rdparty/squirrel/squirrel/sqbaselib.cpp
  7. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.h:5,
  8.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqpcheader.h:12,
  9.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqapi.cpp:8:
  10. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/squtils.h: In instantiation of ‘void sqvector<T>::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = long long unsigned int]’:
  11. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqarray.h:77:21:   required from here
  12. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/squtils.h:93:11: warning: ‘void* memmove(void*, const void*, size_t)’ writing to an object of type ‘struct SQObjectPtr’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
  13.     memmove(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - (size_t)idx - 1));
  14.     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqpcheader.h:12,
  16.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqapi.cpp:8:
  17. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.h:130:8: note: ‘struct SQObjectPtr’ declared here
  18.  struct SQObjectPtr : public SQObject
  19.         ^~~~~~~~~~~
  20. [SRC] Compiling 3rdparty/squirrel/squirrel/sqclass.cpp
  21. [SRC] Compiling 3rdparty/squirrel/squirrel/sqcompiler.cpp
  22. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.h:5,
  23.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqpcheader.h:12,
  24.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqbaselib.cpp:12:
  25. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/squtils.h: In instantiation of ‘void sqvector<T>::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = long long unsigned int]’:
  26. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqarray.h:77:21:   required from here
  27. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/squtils.h:93:11: warning: ‘void* memmove(void*, const void*, size_t)’ writing to an object of type ‘struct SQObjectPtr’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
  28.     memmove(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - (size_t)idx - 1));
  29.     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqpcheader.h:12,
  31.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqbaselib.cpp:12:
  32. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.h:130:8: note: ‘struct SQObjectPtr’ declared here
  33.  struct SQObjectPtr : public SQObject
  34.         ^~~~~~~~~~~
  35. [SRC] Compiling 3rdparty/squirrel/squirrel/sqdebug.cpp
  36. [SRC] Compiling 3rdparty/squirrel/squirrel/sqfuncstate.cpp
  37. [SRC] Compiling 3rdparty/squirrel/squirrel/sqlexer.cpp
  38. [SRC] Compiling 3rdparty/squirrel/squirrel/sqmem.cpp
  39. [SRC] Compiling 3rdparty/squirrel/squirrel/sqobject.cpp
  40. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.h:5,
  41.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqpcheader.h:12,
  42.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.cpp:7:
  43. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/squtils.h: In instantiation of ‘void sqvector<T>::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = long long unsigned int]’:
  44. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqarray.h:77:21:   required from here
  45. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/squtils.h:93:11: warning: ‘void* memmove(void*, const void*, size_t)’ writing to an object of type ‘struct SQObjectPtr’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
  46.     memmove(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - (size_t)idx - 1));
  47.     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqpcheader.h:12,
  49.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.cpp:7:
  50. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.h:130:8: note: ‘struct SQObjectPtr’ declared here
  51.  struct SQObjectPtr : public SQObject
  52.         ^~~~~~~~~~~
  53. [SRC] Compiling 3rdparty/squirrel/squirrel/sqstate.cpp
  54. [SRC] Compiling 3rdparty/squirrel/squirrel/sqtable.cpp
  55. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.h:5,
  56.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqpcheader.h:12,
  57.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqstate.cpp:7:
  58. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/squtils.h: In instantiation of ‘void sqvector<T>::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = long long unsigned int]’:
  59. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqarray.h:77:21:   required from here
  60. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/squtils.h:93:11: warning: ‘void* memmove(void*, const void*, size_t)’ writing to an object of type ‘struct SQObjectPtr’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
  61.     memmove(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - (size_t)idx - 1));
  62.     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  63. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqpcheader.h:12,
  64.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqstate.cpp:7:
  65. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.h:130:8: note: ‘struct SQObjectPtr’ declared here
  66.  struct SQObjectPtr : public SQObject
  67.         ^~~~~~~~~~~
  68. [SRC] Compiling 3rdparty/squirrel/squirrel/sqvm.cpp
  69. [SRC] Compiling ai/ai_config.cpp
  70. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqvm.cpp: In member function ‘bool SQVM::StartCall(SQClosure*, SQInteger, SQInteger, SQInteger, bool)’:
  71. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqvm.cpp:382:28: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct SQVM::CallInfo’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
  72.    memset(&lc, 0, sizeof(lc));
  73.                             ^
  74. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqvm.cpp:12:
  75. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqvm.h:39:9: note: ‘struct SQVM::CallInfo’ declared here
  76.   struct CallInfo{
  77.          ^~~~~~~~
  78. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqvm.cpp: In member function ‘bool SQVM::CallNative(SQNativeClosure*, SQInteger, SQInteger, SQObjectPtr&, bool&)’:
  79. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqvm.cpp:1163:29: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct SQVM::CallInfo’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
  80.   memset(&lci, 0, sizeof(lci));
  81.                              ^
  82. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqvm.cpp:12:
  83. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqvm.h:39:9: note: ‘struct SQVM::CallInfo’ declared here
  84.   struct CallInfo{
  85.          ^~~~~~~~
  86. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.h:5,
  87.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqpcheader.h:12,
  88.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqvm.cpp:8:
  89. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/squtils.h: In instantiation of ‘void sqvector<T>::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = long long unsigned int]’:
  90. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqarray.h:77:21:   required from here
  91. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/squtils.h:93:11: warning: ‘void* memmove(void*, const void*, size_t)’ writing to an object of type ‘struct SQObjectPtr’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
  92.     memmove(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - (size_t)idx - 1));
  93.     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  94. In file included from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqpcheader.h:12,
  95.                  from /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqvm.cpp:8:
  96. /home/lordaro/dev/openttd/src/3rdparty/squirrel/squirrel/sqobject.h:130:8: note: ‘struct SQObjectPtr’ declared here
  97.  struct SQObjectPtr : public SQObject
  98.         ^~~~~~~~~~~
  99. [SRC] Compiling ai/ai_core.cpp
  100. [SRC] Compiling ai/ai_gui.cpp
  101. [SRC] Compiling ai/ai_info.cpp
  102. [SRC] Compiling ai/ai_instance.cpp
  103. [SRC] Compiling ai/ai_scanner.cpp
  104. [SRC] Compiling aircraft_cmd.cpp
  105. [SRC] Compiling aircraft_gui.cpp
  106. [SRC] Compiling airport.cpp
  107. [SRC] Compiling airport_gui.cpp
  108. [SRC] Compiling animated_tile.cpp
  109. [SRC] Compiling articulated_vehicles.cpp
  110. [SRC] Compiling autoreplace.cpp
  111. [SRC] Compiling autoreplace_cmd.cpp
  112. [SRC] Compiling autoreplace_gui.cpp
  113. [SRC] Compiling base_consist.cpp
  114. [SRC] Compiling blitter/32bpp_anim.cpp
  115. [SRC] Compiling blitter/32bpp_anim_sse4.cpp
  116. [SRC] Compiling blitter/32bpp_base.cpp
  117. [SRC] Compiling blitter/32bpp_optimized.cpp
  118. /home/lordaro/dev/openttd/src/blitter/32bpp_anim.cpp: In member function ‘virtual void Blitter_32bppAnim::CopyFromBuffer(void*, const void*, int, int)’:
  119. /home/lordaro/dev/openttd/src/blitter/32bpp_anim.cpp:368:43: warning: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘union Colour’ from an array of ‘const uint32’ {aka ‘const unsigned int’} [-Wclass-memaccess]
  120.    memcpy(dst, usrc, width * sizeof(uint32));
  121.                                            ^
  122. In file included from /home/lordaro/dev/openttd/src/blitter/../spritecache.h:15,
  123.                  from /home/lordaro/dev/openttd/src/blitter/base.hpp:15,
  124.                  from /home/lordaro/dev/openttd/src/blitter/32bpp_base.hpp:15,
  125.                  from /home/lordaro/dev/openttd/src/blitter/32bpp_simple.hpp:15,
  126.                  from /home/lordaro/dev/openttd/src/blitter/32bpp_optimized.hpp:15,
  127.                  from /home/lordaro/dev/openttd/src/blitter/32bpp_anim.hpp:15,
  128.                  from /home/lordaro/dev/openttd/src/blitter/32bpp_anim.cpp:14:
  129. /home/lordaro/dev/openttd/src/blitter/../gfx_type.h:164:7: note: ‘union Colour’ declared here
  130.  union Colour {
  131.        ^~~~~~
  132. [SRC] Compiling blitter/32bpp_simple.cpp
  133. [SRC] Compiling blitter/32bpp_sse2.cpp
  134. [SRC] Compiling blitter/32bpp_sse4.cpp
  135. [SRC] Compiling blitter/32bpp_ssse3.cpp
  136. [SRC] Compiling blitter/8bpp_base.cpp
  137. [SRC] Compiling blitter/8bpp_optimized.cpp
  138. [SRC] Compiling blitter/8bpp_simple.cpp
  139. [SRC] Compiling blitter/base.cpp
  140. [SRC] Compiling blitter/null.cpp
  141. [SRC] Compiling bmp.cpp
  142. [SRC] Compiling bootstrap_gui.cpp
  143. [SRC] Compiling bridge_gui.cpp
  144. [SRC] Compiling bridge_map.cpp
  145. [SRC] Compiling build_vehicle_gui.cpp
  146. In file included from /home/lordaro/dev/openttd/src/core/smallvec_type.hpp:15,
  147.                  from /home/lordaro/dev/openttd/src/station_type.h:15,
  148.                  from /home/lordaro/dev/openttd/src/economy_func.h:16,
  149.                  from /home/lordaro/dev/openttd/src/rail.h:19,
  150.                  from /home/lordaro/dev/openttd/src/bridge_gui.cpp:15:
  151. /home/lordaro/dev/openttd/src/core/alloc_func.hpp: In instantiation of ‘T* ReallocT(T*, size_t) [with T = BuildBridgeData; size_t = long unsigned int]’:
  152. /home/lordaro/dev/openttd/src/core/smallvec_type.hpp:141:25:   required from ‘T* SmallVector<T, S>::Append(uint) [with T = BuildBridgeData; unsigned int S = 32; uint = unsigned int]
  153. /home/lordaro/dev/openttd/src/bridge_gui.cpp:419:40:   required from here
  154. /home/lordaro/dev/openttd/src/core/alloc_func.hpp:128:21: warning: ‘void* realloc(void*, size_t)’ moving an object of non-trivially copyable type ‘struct BuildBridgeData’; use ‘new’ and ‘delete’ instead [-Wclass-memaccess]
  155.   t_ptr = (T*)realloc(t_ptr, num_elements * sizeof(T));
  156.               ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  157. /home/lordaro/dev/openttd/src/bridge_gui.cpp:42:8: note: ‘struct BuildBridgeData’ declared here
  158.  struct BuildBridgeData {
  159.         ^~~~~~~~~~~~~~~
  160. [SRC] Compiling cargoaction.cpp
  161. [SRC] Compiling cargomonitor.cpp
  162. [SRC] Compiling cargopacket.cpp
  163. [SRC] Compiling cargotype.cpp
  164. [SRC] Compiling cheat.cpp
  165. [SRC] Compiling cheat_gui.cpp
  166. [SRC] Compiling clear_cmd.cpp
  167. [SRC] Compiling command.cpp
  168. [SRC] Compiling company_cmd.cpp
  169. [SRC] Compiling company_gui.cpp
  170. [SRC] Compiling console.cpp
  171. [SRC] Compiling console_cmds.cpp
  172. [SRC] Compiling console_gui.cpp
  173. [SRC] Compiling core/alloc_func.cpp
  174. [SRC] Compiling core/bitmath_func.cpp
  175. [SRC] Compiling core/geometry_func.cpp
  176. [SRC] Compiling core/math_func.cpp
  177. [SRC] Compiling core/pool_func.cpp
  178. [SRC] Compiling core/random_func.cpp
  179. [SRC] Compiling cpu.cpp
  180. [SRC] Compiling crashlog.cpp
  181. [SRC] Compiling currency.cpp
  182. [SRC] Compiling date.cpp
  183. [SRC] Compiling date_gui.cpp
  184. [SRC] Compiling debug.cpp
  185. [SRC] Compiling dedicated.cpp
  186. [SRC] Compiling depot.cpp
  187. [SRC] Compiling depot_cmd.cpp
  188. [SRC] Compiling depot_gui.cpp
  189. [SRC] Compiling disaster_vehicle.cpp
  190. [SRC] Compiling dock_gui.cpp
  191. [SRC] Compiling driver.cpp
  192. [SRC] Compiling economy.cpp
  193. [SRC] Compiling effectvehicle.cpp
  194. [SRC] Compiling elrail.cpp
  195. /home/lordaro/dev/openttd/src/economy.cpp: In function ‘void CompaniesGenStatistics()’:
  196. /home/lordaro/dev/openttd/src/economy.cpp:699:101: warning: ‘void* memmove(void*, const void*, size_t)’ writing to an object of type ‘struct CompanyEconomyEntry’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
  197.    memmove(&c->old_economy[1], &c->old_economy[0], sizeof(c->old_economy) - sizeof(c->old_economy[0]));
  198.                                                                                                      ^
  199. In file included from /home/lordaro/dev/openttd/src/autoreplace_func.h:16,
  200.                  from /home/lordaro/dev/openttd/src/economy.cpp:36:
  201. /home/lordaro/dev/openttd/src/company_base.h:23:8: note: ‘struct CompanyEconomyEntry’ declared here
  202.  struct CompanyEconomyEntry {
  203.         ^~~~~~~~~~~~~~~~~~~
  204. /home/lordaro/dev/openttd/src/economy.cpp:701:52: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct CompanyEconomyEntry’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
  205.    memset(&c->cur_economy, 0, sizeof(c->cur_economy));
  206.                                                     ^
  207. In file included from /home/lordaro/dev/openttd/src/autoreplace_func.h:16,
  208.                  from /home/lordaro/dev/openttd/src/economy.cpp:36:
  209. /home/lordaro/dev/openttd/src/company_base.h:23:8: note: ‘struct CompanyEconomyEntry’ declared here
  210.  struct CompanyEconomyEntry {
  211.         ^~~~~~~~~~~~~~~~~~~
  212. [SRC] Compiling engine.cpp
  213. [SRC] Compiling engine_gui.cpp
  214. [SRC] Compiling error_gui.cpp
  215. [SRC] Compiling fileio.cpp
  216. [SRC] Compiling fios.cpp
  217. [SRC] Compiling fios_gui.cpp
  218. [SRC] Compiling fontcache.cpp
  219. [SRC] Compiling fontdetection.cpp
  220. [SRC] Compiling game/game_config.cpp
  221. [SRC] Compiling game/game_core.cpp
  222. [SRC] Compiling game/game_info.cpp
  223. [SRC] Compiling game/game_instance.cpp
  224. [SRC] Compiling game/game_scanner.cpp
  225. [SRC] Compiling game/game_text.cpp
  226. [SRC] Compiling gamelog.cpp
  227. [SRC] Compiling genworld.cpp
  228. [SRC] Compiling genworld_gui.cpp
  229. [SRC] Compiling gfx.cpp
  230. [SRC] Compiling gfx_layout.cpp
  231. [SRC] Compiling gfxinit.cpp
  232. [SRC] Compiling goal.cpp
  233. [SRC] Compiling goal_gui.cpp
  234. In file included from /home/lordaro/dev/openttd/src/gfxinit.cpp:25:
  235. /home/lordaro/dev/openttd/src/base_media_func.h: In instantiation of ‘bool BaseSet<T, Tnum_files, Tsearch_in_tars>::FillSetDetails(IniFile*, const char*, const char*, bool) [with T = GraphicsSet; long unsigned int Tnum_files = 6; bool Tsearch_in_tars = true]’:
  236. /home/lordaro/dev/openttd/src/gfxinit.cpp:352:102:   required from here
  237. /home/lordaro/dev/openttd/src/base_media_func.h:43:8: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct BaseSet<GraphicsSet, 6, true>’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
  238.   memset(this, 0, sizeof(*this));
  239.   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
  240. In file included from /home/lordaro/dev/openttd/src/base_media_func.h:15,
  241.                  from /home/lordaro/dev/openttd/src/gfxinit.cpp:25:
  242. /home/lordaro/dev/openttd/src/base_media_base.h:48:8: note: ‘struct BaseSet<GraphicsSet, 6, true>’ declared here
  243.  struct BaseSet {
  244.         ^~~~~~~
  245. [SRC] Compiling graph_gui.cpp
  246. [SRC] Compiling ground_vehicle.cpp
  247. [SRC] Compiling group_cmd.cpp
  248. [SRC] Compiling group_gui.cpp
  249. [SRC] Compiling heightmap.cpp
  250. [SRC] Compiling highscore.cpp
  251. [SRC] Compiling highscore_gui.cpp
  252. [SRC] Compiling hotkeys.cpp
  253. [SRC] Compiling industry_cmd.cpp
  254. [SRC] Compiling industry_gui.cpp
  255. [SRC] Compiling ini.cpp
  256. [SRC] Compiling ini_load.cpp
  257. [SRC] Compiling intro_gui.cpp
  258. [SRC] Compiling landscape.cpp
  259. In file included from /home/lordaro/dev/openttd/src/core/smallvec_type.hpp:16,
  260.                  from /home/lordaro/dev/openttd/src/station_type.h:15,
  261.                  from /home/lordaro/dev/openttd/src/economy_func.h:16,
  262.                  from /home/lordaro/dev/openttd/src/road_func.h:17,
  263.                  from /home/lordaro/dev/openttd/src/road_map.h:18,
  264.                  from /home/lordaro/dev/openttd/src/bridge_map.h:15,
  265.                  from /home/lordaro/dev/openttd/src/clear_map.h:15,
  266.                  from /home/lordaro/dev/openttd/src/landscape.cpp:16:
  267. /home/lordaro/dev/openttd/src/core/mem_func.hpp: In instantiation of ‘void MemSetT(T*, byte, size_t) [with T = AyStar; byte = unsigned char; size_t = long unsigned int]’:
  268. /home/lordaro/dev/openttd/src/landscape.cpp:1084:20:   required from here
  269. /home/lordaro/dev/openttd/src/core/mem_func.hpp:53:8: warning: ‘void* memset(void*, int, size_t)’ writing to an object of type ‘struct AyStar’ with ‘protected’ member ‘AyStar::closedlist_hash’ [-Wclass-memaccess]
  270.   memset(ptr, value, num * sizeof(T));
  271.   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  272. In file included from /home/lordaro/dev/openttd/src/landscape.cpp:33:
  273. /home/lordaro/dev/openttd/src/pathfinder/npf/aystar.h:116:8: note: ‘struct AyStar’ declared here
  274.  struct AyStar {
  275.         ^~~~~~
  276. [SRC] Compiling linkgraph/demands.cpp
  277. [SRC] Compiling linkgraph/flowmapper.cpp
  278. [SRC] Compiling linkgraph/linkgraph.cpp
  279. [SRC] Compiling linkgraph/linkgraph_gui.cpp
  280. [SRC] Compiling linkgraph/linkgraphjob.cpp
  281. [SRC] Compiling linkgraph/linkgraphschedule.cpp
  282. In file included from /home/lordaro/dev/openttd/src/linkgraph/../core/pool_func.hpp:15,
  283.                  from /home/lordaro/dev/openttd/src/linkgraph/linkgraphjob.cpp:13:
  284. /home/lordaro/dev/openttd/src/linkgraph/../core/alloc_func.hpp: In instantiation of ‘T* ReallocT(T*, size_t) [with T = LinkGraphJob::NodeAnnotation; size_t = long unsigned int]’:
  285. /home/lordaro/dev/openttd/src/linkgraph/../core/smallvec_type.hpp:157:25:   required from ‘void SmallVector<T, S>::Resize(uint) [with T = LinkGraphJob::NodeAnnotation; unsigned int S = 16; uint = unsigned int]
  286. /home/lordaro/dev/openttd/src/linkgraph/linkgraphjob.cpp:182:25:   required from here
  287. /home/lordaro/dev/openttd/src/linkgraph/../core/alloc_func.hpp:128:21: warning: ‘void* realloc(void*, size_t)’ moving an object of non-trivially copyable type ‘struct LinkGraphJob::NodeAnnotation’; use ‘new’ and ‘delete’ instead [-Wclass-memaccess]
  288.   t_ptr = (T*)realloc(t_ptr, num_elements * sizeof(T));
  289.               ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  290. In file included from /home/lordaro/dev/openttd/src/linkgraph/linkgraphjob.cpp:15:
  291. /home/lordaro/dev/openttd/src/linkgraph/linkgraphjob.h:46:9: note: ‘struct LinkGraphJob::NodeAnnotation’ declared here
  292.   struct NodeAnnotation {
  293.          ^~~~~~~~~~~~~~
  294. [SRC] Compiling linkgraph/mcf.cpp
  295. [SRC] Compiling linkgraph/refresh.cpp
  296. [SRC] Compiling main_gui.cpp
  297. [SRC] Compiling map.cpp
  298. [SRC] Compiling misc.cpp
  299. [SRC] Compiling misc/countedobj.cpp
  300. [SRC] Compiling misc/dbg_helpers.cpp
  301. [SRC] Compiling misc/getoptdata.cpp
  302. [SRC] Compiling misc_cmd.cpp
  303. [SRC] Compiling misc_gui.cpp
  304. [SRC] Compiling mixer.cpp
  305. [SRC] Compiling music.cpp
  306. [SRC] Compiling music/extmidi.cpp
  307. In file included from /home/lordaro/dev/openttd/src/music.cpp:17:
  308. /home/lordaro/dev/openttd/src/base_media_func.h: In instantiation of ‘bool BaseSet<T, Tnum_files, Tsearch_in_tars>::FillSetDetails(IniFile*, const char*, const char*, bool) [with T = MusicSet; long unsigned int Tnum_files = 31; bool Tsearch_in_tars = false]’:
  309. /home/lordaro/dev/openttd/src/music.cpp:123:105:   required from here
  310. /home/lordaro/dev/openttd/src/base_media_func.h:43:8: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct BaseSet<MusicSet, 31, false>’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
  311.   memset(this, 0, sizeof(*this));
  312.   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
  313. In file included from /home/lordaro/dev/openttd/src/base_media_func.h:15,
  314.                  from /home/lordaro/dev/openttd/src/music.cpp:17:
  315. /home/lordaro/dev/openttd/src/base_media_base.h:48:8: note: ‘struct BaseSet<MusicSet, 31, false>’ declared here
  316.  struct BaseSet {
  317.         ^~~~~~~
  318. [SRC] Compiling music/midifile.cpp
  319. [SRC] Compiling music/null_m.cpp
  320. [SRC] Compiling music_gui.cpp
  321. [SRC] Compiling network/core/address.cpp
  322. In file included from /home/lordaro/dev/openttd/src/network/core/../../core/smallvec_type.hpp:15,
  323.                  from /home/lordaro/dev/openttd/src/network/core/../../core/smallmap_type.hpp:15,
  324.                  from /home/lordaro/dev/openttd/src/network/core/address.h:18,
  325.                  from /home/lordaro/dev/openttd/src/network/core/address.cpp:16:
  326. /home/lordaro/dev/openttd/src/network/core/../../core/alloc_func.hpp: In instantiation of ‘T* ReallocT(T*, size_t) [with T = SmallPair<NetworkAddress, int>; size_t = long unsigned int]’:
  327. /home/lordaro/dev/openttd/src/network/core/../../core/smallvec_type.hpp:141:25:   required from ‘T* SmallVector<T, S>::Append(uint) [with T = SmallPair<NetworkAddress, int>; unsigned int S = 4; uint = unsigned int]
  328. /home/lordaro/dev/openttd/src/network/core/../../core/smallmap_type.hpp:142:9:   required from ‘U& SmallMap<T, U, S>::operator[](const T&) [with T = NetworkAddress; U = int; unsigned int S = 4]
  329. /home/lordaro/dev/openttd/src/network/core/address.cpp:280:18:   required from here
  330. /home/lordaro/dev/openttd/src/network/core/../../core/alloc_func.hpp:128:21: warning: ‘void* realloc(void*, size_t)’ moving an object of non-trivially copyable type ‘struct SmallPair<NetworkAddress, int>’; use ‘new’ and ‘delete’ instead [-Wclass-memaccess]
  331.   t_ptr = (T*)realloc(t_ptr, num_elements * sizeof(T));
  332.               ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  333. In file included from /home/lordaro/dev/openttd/src/network/core/address.h:18,
  334.                  from /home/lordaro/dev/openttd/src/network/core/address.cpp:16:
  335. /home/lordaro/dev/openttd/src/network/core/../../core/smallmap_type.hpp:24:8: note: ‘struct SmallPair<NetworkAddress, int>’ declared here
  336.  struct SmallPair {
  337.         ^~~~~~~~~
  338. [SRC] Compiling network/core/core.cpp
  339. [SRC] Compiling network/core/host.cpp
  340. In file included from /home/lordaro/dev/openttd/src/network/core/../../core/smallvec_type.hpp:15,
  341.                  from /home/lordaro/dev/openttd/src/network/core/../../core/smallmap_type.hpp:15,
  342.                  from /home/lordaro/dev/openttd/src/network/core/address.h:18,
  343.                  from /home/lordaro/dev/openttd/src/network/core/host.cpp:16:
  344. /home/lordaro/dev/openttd/src/network/core/../../core/alloc_func.hpp: In instantiation of ‘T* ReallocT(T*, size_t) [with T = NetworkAddress; size_t = long unsigned int]’:
  345. /home/lordaro/dev/openttd/src/network/core/../../core/smallvec_type.hpp:141:25:   required from ‘T* SmallVector<T, S>::Append(uint) [with T = NetworkAddress; unsigned int S = 4; uint = unsigned int]
  346. /home/lordaro/dev/openttd/src/network/core/host.cpp:105:54:   required from here
  347. /home/lordaro/dev/openttd/src/network/core/../../core/alloc_func.hpp:128:21: warning: ‘void* realloc(void*, size_t)’ moving an object of non-trivially copyable type ‘class NetworkAddress’; use ‘new’ and ‘delete’ instead [-Wclass-memaccess]
  348.   t_ptr = (T*)realloc(t_ptr, num_elements * sizeof(T));
  349.               ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  350. In file included from /home/lordaro/dev/openttd/src/network/core/host.cpp:16:
  351. /home/lordaro/dev/openttd/src/network/core/address.h:31:7: note: ‘class NetworkAddress’ declared here
  352.  class NetworkAddress {
  353.        ^~~~~~~~~~~~~~
  354. [SRC] Compiling network/core/packet.cpp
  355. [SRC] Compiling network/core/tcp.cpp
  356. [SRC] Compiling network/core/tcp_admin.cpp
  357. [SRC] Compiling network/core/tcp_connect.cpp
  358. [SRC] Compiling network/core/tcp_content.cpp
  359. [SRC] Compiling network/core/tcp_game.cpp
  360. [SRC] Compiling network/core/tcp_http.cpp
  361. [SRC] Compiling network/core/udp.cpp
  362. [SRC] Compiling network/network.cpp
  363. In file included from /home/lordaro/dev/openttd/src/network/core/../../core/smallvec_type.hpp:15,
  364.                  from /home/lordaro/dev/openttd/src/network/core/../../core/smallmap_type.hpp:15,
  365.                  from /home/lordaro/dev/openttd/src/network/core/address.h:18,
  366.                  from /home/lordaro/dev/openttd/src/network/core/udp.h:17,
  367.                  from /home/lordaro/dev/openttd/src/network/core/udp.cpp:19:
  368. /home/lordaro/dev/openttd/src/network/core/../../core/alloc_func.hpp: In instantiation of ‘T* ReallocT(T*, size_t) [with T = NetworkAddress; size_t = long unsigned int]’:
  369. /home/lordaro/dev/openttd/src/network/core/../../core/smallvec_type.hpp:141:25:   required from ‘T* SmallVector<T, S>::Append(uint) [with T = NetworkAddress; unsigned int S = 4; uint = unsigned int]
  370. /home/lordaro/dev/openttd/src/network/core/udp.cpp:31:23:   required from here
  371. /home/lordaro/dev/openttd/src/network/core/../../core/alloc_func.hpp:128:21: warning: ‘void* realloc(void*, size_t)’ moving an object of non-trivially copyable type ‘class NetworkAddress’; use ‘new’ and ‘delete’ instead [-Wclass-memaccess]
  372.   t_ptr = (T*)realloc(t_ptr, num_elements * sizeof(T));
  373.               ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  374. In file included from /home/lordaro/dev/openttd/src/network/core/udp.h:17,
  375.                  from /home/lordaro/dev/openttd/src/network/core/udp.cpp:19:
  376. /home/lordaro/dev/openttd/src/network/core/address.h:31:7: note: ‘class NetworkAddress’ declared here
  377.  class NetworkAddress {
  378.        ^~~~~~~~~~~~~~
  379. [SRC] Compiling network/network_admin.cpp
  380. In file included from /home/lordaro/dev/openttd/src/network/core/../../core/smallvec_type.hpp:15,
  381.                  from /home/lordaro/dev/openttd/src/network/core/../../core/smallmap_type.hpp:15,
  382.                  from /home/lordaro/dev/openttd/src/network/core/address.h:18,
  383.                  from /home/lordaro/dev/openttd/src/network/network_func.h:22,
  384.                  from /home/lordaro/dev/openttd/src/network/network_internal.h:15,
  385.                  from /home/lordaro/dev/openttd/src/network/network_admin.h:17,
  386.                  from /home/lordaro/dev/openttd/src/network/network.cpp:19:
  387. /home/lordaro/dev/openttd/src/network/core/../../core/alloc_func.hpp: In instantiation of ‘T* ReallocT(T*, size_t) [with T = NetworkAddress; size_t = long unsigned int]’:
  388. /home/lordaro/dev/openttd/src/network/core/../../core/smallvec_type.hpp:141:25:   required from ‘T* SmallVector<T, S>::Append(uint) [with T = NetworkAddress; unsigned int S = 4; uint = unsigned int]
  389. /home/lordaro/dev/openttd/src/network/network.cpp:638:22:   required from here
  390. /home/lordaro/dev/openttd/src/network/core/../../core/alloc_func.hpp:128:21: warning: ‘void* realloc(void*, size_t)’ moving an object of non-trivially copyable type ‘class NetworkAddress’; use ‘new’ and ‘delete’ instead [-Wclass-memaccess]
  391.   t_ptr = (T*)realloc(t_ptr, num_elements * sizeof(T));
  392.               ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  393. In file included from /home/lordaro/dev/openttd/src/network/network_func.h:22,
  394.                  from /home/lordaro/dev/openttd/src/network/network_internal.h:15,
  395.                  from /home/lordaro/dev/openttd/src/network/network_admin.h:17,
  396.                  from /home/lordaro/dev/openttd/src/network/network.cpp:19:
  397. /home/lordaro/dev/openttd/src/network/core/address.h:31:7: note: ‘class NetworkAddress’ declared here
  398.  class NetworkAddress {
  399.        ^~~~~~~~~~~~~~
  400. [SRC] Compiling network/network_chat_gui.cpp
  401. [SRC] Compiling network/network_client.cpp
  402. [SRC] Compiling network/network_command.cpp
  403. [SRC] Compiling network/network_content.cpp
  404. [SRC] Compiling network/network_content_gui.cpp
  405. [SRC] Compiling network/network_gamelist.cpp
  406. [SRC] Compiling network/network_gui.cpp
  407. [SRC] Compiling network/network_server.cpp
  408. [SRC] Compiling network/network_udp.cpp
  409. [SRC] Compiling newgrf.cpp
  410. [SRC] Compiling newgrf_airport.cpp
  411. [SRC] Compiling newgrf_airporttiles.cpp
  412. [SRC] Compiling newgrf_canal.cpp
  413. [SRC] Compiling newgrf_cargo.cpp
  414. [SRC] Compiling newgrf_commons.cpp
  415. [SRC] Compiling newgrf_config.cpp
  416. [SRC] Compiling newgrf_debug_gui.cpp
  417. [SRC] Compiling newgrf_engine.cpp
  418. [SRC] Compiling newgrf_generic.cpp
  419. [SRC] Compiling newgrf_gui.cpp
  420. [SRC] Compiling newgrf_house.cpp
  421. [SRC] Compiling newgrf_industries.cpp
  422. [SRC] Compiling newgrf_industrytiles.cpp
  423. [SRC] Compiling newgrf_object.cpp
  424. In file included from /home/lordaro/dev/openttd/src/core/smallvec_type.hpp:16,
  425.                  from /home/lordaro/dev/openttd/src/core/pool_type.hpp:15,
  426.                  from /home/lordaro/dev/openttd/src/group.h:16,
  427.                  from /home/lordaro/dev/openttd/src/company_base.h:20,
  428.                  from /home/lordaro/dev/openttd/src/newgrf_object.cpp:13:
  429. /home/lordaro/dev/openttd/src/core/mem_func.hpp: In instantiation of ‘void MemSetT(T*, byte, size_t) [with T = ObjectSpec; byte = unsigned char; size_t = long unsigned int]’:
  430. /home/lordaro/dev/openttd/src/newgrf_object.cpp:99:51:   required from here
  431. /home/lordaro/dev/openttd/src/core/mem_func.hpp:53:8: warning: ‘void* memset(void*, int, size_t)’ writing to an object of non-trivial type ‘struct ObjectSpec’; use assignment instead [-Wclass-memaccess]
  432.   memset(ptr, value, num * sizeof(T));
  433.   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  434. In file included from /home/lordaro/dev/openttd/src/newgrf_object.cpp:18:
  435. /home/lordaro/dev/openttd/src/newgrf_object.h:60:8: note: ‘struct ObjectSpec’ declared here
  436.  struct ObjectSpec {
  437.         ^~~~~~~~~~
  438. [SRC] Compiling newgrf_railtype.cpp
  439. [SRC] Compiling newgrf_sound.cpp
  440. [SRC] Compiling newgrf_spritegroup.cpp
  441. [SRC] Compiling newgrf_station.cpp
  442. [SRC] Compiling newgrf_storage.cpp
  443. [SRC] Compiling newgrf_text.cpp
  444. [SRC] Compiling newgrf_town.cpp
  445. [SRC] Compiling newgrf_townname.cpp
  446. [SRC] Compiling news_gui.cpp
  447. [SRC] Compiling object_cmd.cpp
  448. [SRC] Compiling object_gui.cpp
  449. [SRC] Compiling openttd.cpp
  450. [SRC] Compiling order_backup.cpp
  451. [SRC] Compiling order_cmd.cpp
  452. [SRC] Compiling order_gui.cpp
  453. [SRC] Compiling os/unix/crashlog_unix.cpp
  454. [SRC] Compiling os/unix/unix.cpp
  455. [SRC] Compiling osk_gui.cpp
  456. [SRC] Compiling pathfinder/npf/aystar.cpp
  457. [SRC] Compiling pathfinder/npf/npf.cpp
  458. [SRC] Compiling pathfinder/npf/queue.cpp
  459. [SRC] Compiling pathfinder/opf/opf_ship.cpp
  460. [SRC] Compiling pathfinder/yapf/yapf_rail.cpp
  461. [SRC] Compiling pathfinder/yapf/yapf_road.cpp
  462. [SRC] Compiling pathfinder/yapf/yapf_ship.cpp
  463. [SRC] Compiling pbs.cpp
  464. [SRC] Compiling progress.cpp
  465. [SRC] Compiling rail.cpp
  466. [SRC] Compiling rail_cmd.cpp
  467. [SRC] Compiling rail_gui.cpp
  468. [SRC] Compiling rev.cpp
  469. [SRC] Compiling road.cpp
  470. [SRC] Compiling road_cmd.cpp
  471. [SRC] Compiling road_gui.cpp
  472. [SRC] Compiling road_map.cpp
  473. [SRC] Compiling roadstop.cpp
  474. [SRC] Compiling roadveh_cmd.cpp
  475. [SRC] Compiling roadveh_gui.cpp
  476. [SRC] Compiling saveload/afterload.cpp
  477. [SRC] Compiling saveload/ai_sl.cpp
  478. [SRC] Compiling saveload/airport_sl.cpp
  479. [SRC] Compiling saveload/animated_tile_sl.cpp
  480. [SRC] Compiling saveload/autoreplace_sl.cpp
  481. [SRC] Compiling saveload/cargomonitor_sl.cpp
  482. [SRC] Compiling saveload/cargopacket_sl.cpp
  483. [SRC] Compiling saveload/cheat_sl.cpp
  484. [SRC] Compiling saveload/company_sl.cpp
  485. [SRC] Compiling saveload/depot_sl.cpp
  486. [SRC] Compiling saveload/economy_sl.cpp
  487. [SRC] Compiling saveload/engine_sl.cpp
  488. /home/lordaro/dev/openttd/src/saveload/company_sl.cpp: In function ‘void Check_PLYR()’:
  489. /home/lordaro/dev/openttd/src/saveload/company_sl.cpp:500:36: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct CompanyProperties’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
  490.    memset(cprops, 0, sizeof(*cprops));
  491.                                     ^
  492. In file included from /home/lordaro/dev/openttd/src/saveload/../fios.h:16,
  493.                  from /home/lordaro/dev/openttd/src/saveload/company_sl.cpp:15:
  494. /home/lordaro/dev/openttd/src/saveload/../company_base.h:53:8: note: ‘struct CompanyProperties’ declared here
  495.  struct CompanyProperties {
  496.         ^~~~~~~~~~~~~~~~~
  497. [SRC] Compiling saveload/game_sl.cpp
  498. [SRC] Compiling saveload/gamelog_sl.cpp
  499. [SRC] Compiling saveload/goal_sl.cpp
  500. In file included from /home/lordaro/dev/openttd/src/saveload/game_sl.cpp:14:
  501. /home/lordaro/dev/openttd/src/saveload/../stdafx.h:381:32: warning: division ‘sizeof (const char*) / sizeof (const char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  502.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  503.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  504. /home/lordaro/dev/openttd/src/saveload/saveload.h:364:79: note: in definition of macro ‘SLEG_GENERAL’
  505.  #define SLEG_GENERAL(cmd, variable, type, length, from, to) {true, cmd, type, length, from, to, (void*)&variable, sizeof(variable)}
  506.                                                                                ^~~~~~
  507. /home/lordaro/dev/openttd/src/saveload/saveload.h:439:34: note: in expansion of macro ‘SLEG_CONDSTR’
  508.  #define SLEG_STR(variable, type) SLEG_CONDSTR(variable, type, lengthof(variable), 0, SL_MAX_VERSION)
  509.                                   ^~~~~~~~~~~~
  510. /home/lordaro/dev/openttd/src/saveload/saveload.h:439:63: note: in expansion of macro ‘lengthof’
  511.  #define SLEG_STR(variable, type) SLEG_CONDSTR(variable, type, lengthof(variable), 0, SL_MAX_VERSION)
  512.                                                                ^~~~~~~~
  513. /home/lordaro/dev/openttd/src/saveload/game_sl.cpp:122:2: note: in expansion of macro ‘SLEG_STR’
  514.   SLEG_STR(_game_saveload_string, SLE_STR),
  515.   ^~~~~~~~
  516. /home/lordaro/dev/openttd/src/saveload/game_sl.cpp:118:20: note: first ‘sizeof’ operand was declared here
  517.  static const char *_game_saveload_string;
  518.                     ^~~~~~~~~~~~~~~~~~~~~
  519. In file included from /home/lordaro/dev/openttd/src/saveload/game_sl.cpp:14:
  520. /home/lordaro/dev/openttd/src/saveload/../stdafx.h:381:32: warning: division ‘sizeof (const char*) / sizeof (const char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  521.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  522.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  523. /home/lordaro/dev/openttd/src/saveload/saveload.h:364:79: note: in definition of macro ‘SLEG_GENERAL’
  524.  #define SLEG_GENERAL(cmd, variable, type, length, from, to) {true, cmd, type, length, from, to, (void*)&variable, sizeof(variable)}
  525.                                                                                ^~~~~~
  526. /home/lordaro/dev/openttd/src/saveload/saveload.h:439:34: note: in expansion of macro ‘SLEG_CONDSTR’
  527.  #define SLEG_STR(variable, type) SLEG_CONDSTR(variable, type, lengthof(variable), 0, SL_MAX_VERSION)
  528.                                   ^~~~~~~~~~~~
  529. /home/lordaro/dev/openttd/src/saveload/saveload.h:439:63: note: in expansion of macro ‘lengthof’
  530.  #define SLEG_STR(variable, type) SLEG_CONDSTR(variable, type, lengthof(variable), 0, SL_MAX_VERSION)
  531.                                                                ^~~~~~~~
  532. /home/lordaro/dev/openttd/src/saveload/game_sl.cpp:128:2: note: in expansion of macro ‘SLEG_STR’
  533.   SLEG_STR(_game_saveload_string, SLE_STR | SLF_ALLOW_CONTROL),
  534.   ^~~~~~~~
  535. /home/lordaro/dev/openttd/src/saveload/game_sl.cpp:118:20: note: first ‘sizeof’ operand was declared here
  536.  static const char *_game_saveload_string;
  537.                     ^~~~~~~~~~~~~~~~~~~~~
  538. [SRC] Compiling saveload/group_sl.cpp
  539. [SRC] Compiling saveload/industry_sl.cpp
  540. [SRC] Compiling saveload/labelmaps_sl.cpp
  541. [SRC] Compiling saveload/linkgraph_sl.cpp
  542. [SRC] Compiling saveload/map_sl.cpp
  543. [SRC] Compiling saveload/misc_sl.cpp
  544. [SRC] Compiling saveload/newgrf_sl.cpp
  545. [SRC] Compiling saveload/object_sl.cpp
  546. [SRC] Compiling saveload/oldloader.cpp
  547. [SRC] Compiling saveload/oldloader_sl.cpp
  548. [SRC] Compiling saveload/order_sl.cpp
  549. [SRC] Compiling saveload/saveload.cpp
  550. [SRC] Compiling saveload/signs_sl.cpp
  551. [SRC] Compiling saveload/station_sl.cpp
  552. [SRC] Compiling saveload/storage_sl.cpp
  553. [SRC] Compiling saveload/story_sl.cpp
  554. [SRC] Compiling saveload/strings_sl.cpp
  555. [SRC] Compiling saveload/subsidy_sl.cpp
  556. [SRC] Compiling saveload/town_sl.cpp
  557. [SRC] Compiling saveload/vehicle_sl.cpp
  558. [SRC] Compiling saveload/waypoint_sl.cpp
  559. [SRC] Compiling screenshot.cpp
  560. [SRC] Compiling script/api/script_accounting.cpp
  561. [SRC] Compiling script/api/script_admin.cpp
  562. [SRC] Compiling script/api/script_airport.cpp
  563. [SRC] Compiling script/api/script_base.cpp
  564. [SRC] Compiling script/api/script_basestation.cpp
  565. [SRC] Compiling script/api/script_bridge.cpp
  566. [SRC] Compiling script/api/script_bridgelist.cpp
  567. [SRC] Compiling script/api/script_cargo.cpp
  568. [SRC] Compiling script/api/script_cargolist.cpp
  569. [SRC] Compiling script/api/script_cargomonitor.cpp
  570. [SRC] Compiling script/api/script_client.cpp
  571. [SRC] Compiling script/api/script_clientlist.cpp
  572. [SRC] Compiling script/api/script_company.cpp
  573. [SRC] Compiling script/api/script_companymode.cpp
  574. [SRC] Compiling script/api/script_controller.cpp
  575. [SRC] Compiling script/api/script_date.cpp
  576. [SRC] Compiling script/api/script_depotlist.cpp
  577. [SRC] Compiling script/api/script_engine.cpp
  578. [SRC] Compiling script/api/script_enginelist.cpp
  579. [SRC] Compiling script/api/script_error.cpp
  580. [SRC] Compiling script/api/script_event.cpp
  581. [SRC] Compiling script/api/script_event_types.cpp
  582. [SRC] Compiling script/api/script_execmode.cpp
  583. [SRC] Compiling script/api/script_game.cpp
  584. [SRC] Compiling script/api/script_gamesettings.cpp
  585. [SRC] Compiling script/api/script_goal.cpp
  586. [SRC] Compiling script/api/script_group.cpp
  587. [SRC] Compiling script/api/script_grouplist.cpp
  588. [SRC] Compiling script/api/script_industry.cpp
  589. [SRC] Compiling script/api/script_industrylist.cpp
  590. [SRC] Compiling script/api/script_industrytype.cpp
  591. [SRC] Compiling script/api/script_industrytypelist.cpp
  592. [SRC] Compiling script/api/script_infrastructure.cpp
  593. [SRC] Compiling script/api/script_list.cpp
  594. [SRC] Compiling script/api/script_log.cpp
  595. [SRC] Compiling script/api/script_map.cpp
  596. [SRC] Compiling script/api/script_marine.cpp
  597. [SRC] Compiling script/api/script_news.cpp
  598. [SRC] Compiling script/api/script_object.cpp
  599. [SRC] Compiling script/api/script_order.cpp
  600. [SRC] Compiling script/api/script_rail.cpp
  601. [SRC] Compiling script/api/script_railtypelist.cpp
  602. [SRC] Compiling script/api/script_road.cpp
  603. [SRC] Compiling script/api/script_sign.cpp
  604. [SRC] Compiling script/api/script_signlist.cpp
  605. [SRC] Compiling script/api/script_station.cpp
  606. [SRC] Compiling script/api/script_stationlist.cpp
  607. [SRC] Compiling script/api/script_story_page.cpp
  608. [SRC] Compiling script/api/script_storypageelementlist.cpp
  609. [SRC] Compiling script/api/script_storypagelist.cpp
  610. [SRC] Compiling script/api/script_subsidy.cpp
  611. [SRC] Compiling script/api/script_subsidylist.cpp
  612. [SRC] Compiling script/api/script_testmode.cpp
  613. [SRC] Compiling script/api/script_text.cpp
  614. [SRC] Compiling script/api/script_tile.cpp
  615. [SRC] Compiling script/api/script_tilelist.cpp
  616. [SRC] Compiling script/api/script_town.cpp
  617. [SRC] Compiling script/api/script_townlist.cpp
  618. [SRC] Compiling script/api/script_tunnel.cpp
  619. [SRC] Compiling script/api/script_vehicle.cpp
  620. [SRC] Compiling script/api/script_vehiclelist.cpp
  621. [SRC] Compiling script/api/script_viewport.cpp
  622. [SRC] Compiling script/api/script_waypoint.cpp
  623. [SRC] Compiling script/api/script_waypointlist.cpp
  624. [SRC] Compiling script/api/script_window.cpp
  625. [SRC] Compiling script/script_config.cpp
  626. [SRC] Compiling script/script_info.cpp
  627. [SRC] Compiling script/script_info_dummy.cpp
  628. [SRC] Compiling script/script_instance.cpp
  629. [SRC] Compiling script/script_scanner.cpp
  630. [SRC] Compiling script/squirrel.cpp
  631. [SRC] Compiling script/squirrel_std.cpp
  632. [SRC] Compiling sdl.cpp
  633. [SRC] Compiling settings.cpp
  634. [SRC] Compiling settings_gui.cpp
  635. [SRC] Compiling ship_cmd.cpp
  636. [SRC] Compiling ship_gui.cpp
  637. In file included from /home/lordaro/dev/openttd/src/settings_internal.h:15,
  638.                  from /home/lordaro/dev/openttd/src/settings.cpp:31:
  639. /home/lordaro/dev/openttd/src/stdafx.h:381:32: warning: division ‘sizeof (const char*) / sizeof (const char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  640.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  641.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  642. /home/lordaro/dev/openttd/src/saveload/saveload.h:364:79: note: in definition of macro ‘SLEG_GENERAL’
  643.  #define SLEG_GENERAL(cmd, variable, type, length, from, to) {true, cmd, type, length, from, to, (void*)&variable, sizeof(variable)}
  644.                                                                                ^~~~~~
  645. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:2: note: in expansion of macro ‘SDTG_GENERAL’
  646.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  647.   ^~~~~~~~~~~~
  648. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:69: note: in expansion of macro ‘lengthof’
  649.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  650.                                                                      ^~~~~~~~
  651. /home/lordaro/dev/openttd/objs/setting/table/settings.h:217:1: note: in expansion of macro ‘SDTG_STR’
  652.  SDTG_STR("graphicsset", SLE_STRQ,          SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC, 0, BaseGraphics::ini_set, NULL,                               STR_NULL, STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT, STR_NULL, NULL, 0, SL_MAX_VERSION, SC_BASIC),
  653.  ^~~~~~~~
  654. In file included from /home/lordaro/dev/openttd/src/settings.cpp:54:
  655. /home/lordaro/dev/openttd/src/base_media_base.h:222:53: note: first ‘sizeof’ operand was declared here
  656.  template <class Tbase_set> /* static */ const char *BaseMedia<Tbase_set>::ini_set;
  657.                                                      ^~~~~~~~~~~~~~~~~~~~
  658. In file included from /home/lordaro/dev/openttd/src/settings_internal.h:15,
  659.                  from /home/lordaro/dev/openttd/src/settings.cpp:31:
  660. /home/lordaro/dev/openttd/src/stdafx.h:381:32: warning: division ‘sizeof (const char*) / sizeof (const char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  661.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  662.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  663. /home/lordaro/dev/openttd/src/saveload/saveload.h:364:79: note: in definition of macro ‘SLEG_GENERAL’
  664.  #define SLEG_GENERAL(cmd, variable, type, length, from, to) {true, cmd, type, length, from, to, (void*)&variable, sizeof(variable)}
  665.                                                                                ^~~~~~
  666. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:2: note: in expansion of macro ‘SDTG_GENERAL’
  667.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  668.   ^~~~~~~~~~~~
  669. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:69: note: in expansion of macro ‘lengthof’
  670.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  671.                                                                      ^~~~~~~~
  672. /home/lordaro/dev/openttd/objs/setting/table/settings.h:218:1: note: in expansion of macro ‘SDTG_STR’
  673.  SDTG_STR("soundsset", SLE_STRQ,          SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC, 0, BaseSounds::ini_set, NULL,                               STR_NULL, STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT, STR_NULL, NULL, 0, SL_MAX_VERSION, SC_BASIC),
  674.  ^~~~~~~~
  675. In file included from /home/lordaro/dev/openttd/src/settings.cpp:54:
  676. /home/lordaro/dev/openttd/src/base_media_base.h:222:53: note: first ‘sizeof’ operand was declared here
  677.  template <class Tbase_set> /* static */ const char *BaseMedia<Tbase_set>::ini_set;
  678.                                                      ^~~~~~~~~~~~~~~~~~~~
  679. In file included from /home/lordaro/dev/openttd/src/settings_internal.h:15,
  680.                  from /home/lordaro/dev/openttd/src/settings.cpp:31:
  681. /home/lordaro/dev/openttd/src/stdafx.h:381:32: warning: division ‘sizeof (const char*) / sizeof (const char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  682.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  683.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  684. /home/lordaro/dev/openttd/src/saveload/saveload.h:364:79: note: in definition of macro ‘SLEG_GENERAL’
  685.  #define SLEG_GENERAL(cmd, variable, type, length, from, to) {true, cmd, type, length, from, to, (void*)&variable, sizeof(variable)}
  686.                                                                                ^~~~~~
  687. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:2: note: in expansion of macro ‘SDTG_GENERAL’
  688.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  689.   ^~~~~~~~~~~~
  690. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:69: note: in expansion of macro ‘lengthof’
  691.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  692.                                                                      ^~~~~~~~
  693. /home/lordaro/dev/openttd/objs/setting/table/settings.h:219:1: note: in expansion of macro ‘SDTG_STR’
  694.  SDTG_STR("musicset", SLE_STRQ,          SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC, 0, BaseMusic::ini_set, NULL,                               STR_NULL, STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT, STR_NULL, NULL, 0, SL_MAX_VERSION, SC_BASIC),
  695.  ^~~~~~~~
  696. In file included from /home/lordaro/dev/openttd/src/settings.cpp:54:
  697. /home/lordaro/dev/openttd/src/base_media_base.h:222:53: note: first ‘sizeof’ operand was declared here
  698.  template <class Tbase_set> /* static */ const char *BaseMedia<Tbase_set>::ini_set;
  699.                                                      ^~~~~~~~~~~~~~~~~~~~
  700. In file included from /home/lordaro/dev/openttd/src/settings_internal.h:15,
  701.                  from /home/lordaro/dev/openttd/src/settings.cpp:31:
  702. /home/lordaro/dev/openttd/src/stdafx.h:381:32: warning: division ‘sizeof (char*) / sizeof (char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  703.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  704.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  705. /home/lordaro/dev/openttd/src/saveload/saveload.h:364:79: note: in definition of macro ‘SLEG_GENERAL’
  706.  #define SLEG_GENERAL(cmd, variable, type, length, from, to) {true, cmd, type, length, from, to, (void*)&variable, sizeof(variable)}
  707.                                                                                ^~~~~~
  708. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:2: note: in expansion of macro ‘SDTG_GENERAL’
  709.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  710.   ^~~~~~~~~~~~
  711. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:69: note: in expansion of macro ‘lengthof’
  712.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  713.                                                                      ^~~~~~~~
  714. /home/lordaro/dev/openttd/objs/setting/table/settings.h:220:1: note: in expansion of macro ‘SDTG_STR’
  715.  SDTG_STR("videodriver", SLE_STRQ,          SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC, 0, _ini_videodriver, NULL,                               STR_NULL, STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT, STR_NULL, NULL, 0, SL_MAX_VERSION, SC_EXPERT),
  716.  ^~~~~~~~
  717. In file included from /home/lordaro/dev/openttd/src/settings.cpp:50:
  718. /home/lordaro/dev/openttd/src/video/video_driver.hpp:103:14: note: first ‘sizeof’ operand was declared here
  719.  extern char *_ini_videodriver;
  720.               ^~~~~~~~~~~~~~~~
  721. In file included from /home/lordaro/dev/openttd/src/settings_internal.h:15,
  722.                  from /home/lordaro/dev/openttd/src/settings.cpp:31:
  723. /home/lordaro/dev/openttd/src/stdafx.h:381:32: warning: division ‘sizeof (char*) / sizeof (char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  724.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  725.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  726. /home/lordaro/dev/openttd/src/saveload/saveload.h:364:79: note: in definition of macro ‘SLEG_GENERAL’
  727.  #define SLEG_GENERAL(cmd, variable, type, length, from, to) {true, cmd, type, length, from, to, (void*)&variable, sizeof(variable)}
  728.                                                                                ^~~~~~
  729. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:2: note: in expansion of macro ‘SDTG_GENERAL’
  730.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  731.   ^~~~~~~~~~~~
  732. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:69: note: in expansion of macro ‘lengthof’
  733.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  734.                                                                      ^~~~~~~~
  735. /home/lordaro/dev/openttd/objs/setting/table/settings.h:221:1: note: in expansion of macro ‘SDTG_STR’
  736.  SDTG_STR("musicdriver", SLE_STRQ,          SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC, 0, _ini_musicdriver, NULL,                               STR_NULL, STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT, STR_NULL, NULL, 0, SL_MAX_VERSION, SC_EXPERT),
  737.  ^~~~~~~~
  738. In file included from /home/lordaro/dev/openttd/src/settings.cpp:52:
  739. /home/lordaro/dev/openttd/src/music/music_driver.hpp:53:14: note: first ‘sizeof’ operand was declared here
  740.  extern char *_ini_musicdriver;
  741.               ^~~~~~~~~~~~~~~~
  742. In file included from /home/lordaro/dev/openttd/src/settings_internal.h:15,
  743.                  from /home/lordaro/dev/openttd/src/settings.cpp:31:
  744. /home/lordaro/dev/openttd/src/stdafx.h:381:32: warning: division ‘sizeof (char*) / sizeof (char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  745.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  746.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  747. /home/lordaro/dev/openttd/src/saveload/saveload.h:364:79: note: in definition of macro ‘SLEG_GENERAL’
  748.  #define SLEG_GENERAL(cmd, variable, type, length, from, to) {true, cmd, type, length, from, to, (void*)&variable, sizeof(variable)}
  749.                                                                                ^~~~~~
  750. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:2: note: in expansion of macro ‘SDTG_GENERAL’
  751.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  752.   ^~~~~~~~~~~~
  753. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:69: note: in expansion of macro ‘lengthof’
  754.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  755.                                                                      ^~~~~~~~
  756. /home/lordaro/dev/openttd/objs/setting/table/settings.h:222:1: note: in expansion of macro ‘SDTG_STR’
  757.  SDTG_STR("sounddriver", SLE_STRQ,          SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC, 0, _ini_sounddriver, NULL,                               STR_NULL, STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT, STR_NULL, NULL, 0, SL_MAX_VERSION, SC_EXPERT),
  758.  ^~~~~~~~
  759. In file included from /home/lordaro/dev/openttd/src/settings.cpp:51:
  760. /home/lordaro/dev/openttd/src/sound/sound_driver.hpp:31:14: note: first ‘sizeof’ operand was declared here
  761.  extern char *_ini_sounddriver;
  762.               ^~~~~~~~~~~~~~~~
  763. In file included from /home/lordaro/dev/openttd/src/settings_internal.h:15,
  764.                  from /home/lordaro/dev/openttd/src/settings.cpp:31:
  765. /home/lordaro/dev/openttd/src/stdafx.h:381:32: warning: division ‘sizeof (char*) / sizeof (char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  766.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  767.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  768. /home/lordaro/dev/openttd/src/saveload/saveload.h:364:79: note: in definition of macro ‘SLEG_GENERAL’
  769.  #define SLEG_GENERAL(cmd, variable, type, length, from, to) {true, cmd, type, length, from, to, (void*)&variable, sizeof(variable)}
  770.                                                                                ^~~~~~
  771. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:2: note: in expansion of macro ‘SDTG_GENERAL’
  772.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  773.   ^~~~~~~~~~~~
  774. /home/lordaro/dev/openttd/objs/setting/table/settings.h:77:69: note: in expansion of macro ‘lengthof’
  775.   SDTG_GENERAL(name, SDT_STRING, SL_STR, type, flags, guiflags, var, lengthof(var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, from, to, cat)
  776.                                                                      ^~~~~~~~
  777. /home/lordaro/dev/openttd/objs/setting/table/settings.h:223:1: note: in expansion of macro ‘SDTG_STR’
  778.  SDTG_STR("blitter", SLE_STRQ,          SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC, 0, _ini_blitter, NULL,                               STR_NULL, STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT, STR_NULL, NULL, 0, SL_MAX_VERSION, SC_ADVANCED),
  779.  ^~~~~~~~
  780. In file included from /home/lordaro/dev/openttd/src/settings.cpp:53:
  781. /home/lordaro/dev/openttd/src/blitter/factory.hpp:193:14: note: first ‘sizeof’ operand was declared here
  782.  extern char *_ini_blitter;
  783.               ^~~~~~~~~~~~
  784. In file included from /home/lordaro/dev/openttd/src/settings_internal.h:15,
  785.                  from /home/lordaro/dev/openttd/src/settings.cpp:31:
  786. /home/lordaro/dev/openttd/src/stdafx.h:381:32: warning: division ‘sizeof (char*) / sizeof (char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  787.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  788.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  789. /home/lordaro/dev/openttd/src/saveload/saveload.h:236:85: note: in definition of macro ‘SLE_GENERAL’
  790.  #define SLE_GENERAL(cmd, base, variable, type, length, from, to) {false, cmd, type, length, from, to, (void*)cpp_offsetof(base, variable), cpp_sizeof(base, variable)}
  791.                                                                                      ^~~~~~
  792. /home/lordaro/dev/openttd/objs/setting/table/settings.h:105:2: note: in expansion of macro ‘SDT_GENERAL’
  793.   SDT_GENERAL(#var, SDT_STRING, SL_STR, type, flags, guiflags, base, var, lengthof(((base*)8)->var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, NULL, from, to, cat)
  794.   ^~~~~~~~~~~
  795. /home/lordaro/dev/openttd/objs/setting/table/settings.h:105:74: note: in expansion of macro ‘lengthof’
  796.   SDT_GENERAL(#var, SDT_STRING, SL_STR, type, flags, guiflags, base, var, lengthof(((base*)8)->var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, NULL, from, to, cat)
  797.                                                                           ^~~~~~~~
  798. /home/lordaro/dev/openttd/objs/setting/table/settings.h:553:1: note: in expansion of macro ‘SDT_STR’
  799.  SDT_STR(GameSettings, locale.digit_group_separator, SLE_STRQ, SLF_NO_NETWORK_SYNC, 0, NULL,                              STR_NULL, STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT, STR_NULL, RedrawScreen, 118, SL_MAX_VERSION,        SC_BASIC),
  800.  ^~~~~~~
  801. /home/lordaro/dev/openttd/src/stdafx.h:381:32: warning: division ‘sizeof (char*) / sizeof (char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  802.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  803.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  804. /home/lordaro/dev/openttd/src/saveload/saveload.h:236:85: note: in definition of macro ‘SLE_GENERAL’
  805.  #define SLE_GENERAL(cmd, base, variable, type, length, from, to) {false, cmd, type, length, from, to, (void*)cpp_offsetof(base, variable), cpp_sizeof(base, variable)}
  806.                                                                                      ^~~~~~
  807. /home/lordaro/dev/openttd/objs/setting/table/settings.h:105:2: note: in expansion of macro ‘SDT_GENERAL’
  808.   SDT_GENERAL(#var, SDT_STRING, SL_STR, type, flags, guiflags, base, var, lengthof(((base*)8)->var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, NULL, from, to, cat)
  809.   ^~~~~~~~~~~
  810. /home/lordaro/dev/openttd/objs/setting/table/settings.h:105:74: note: in expansion of macro ‘lengthof’
  811.   SDT_GENERAL(#var, SDT_STRING, SL_STR, type, flags, guiflags, base, var, lengthof(((base*)8)->var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, NULL, from, to, cat)
  812.                                                                           ^~~~~~~~
  813. /home/lordaro/dev/openttd/objs/setting/table/settings.h:554:1: note: in expansion of macro ‘SDT_STR’
  814.  SDT_STR(GameSettings, locale.digit_group_separator_currency, SLE_STRQ, SLF_NO_NETWORK_SYNC, 0, NULL,                              STR_NULL, STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT, STR_NULL, RedrawScreen, 118, SL_MAX_VERSION,        SC_BASIC),
  815.  ^~~~~~~
  816. /home/lordaro/dev/openttd/src/stdafx.h:381:32: warning: division ‘sizeof (char*) / sizeof (char)’ does not compute the number of array elements [-Wsizeof-pointer-div]
  817.  #define lengthof(x) (sizeof(x) / sizeof(x[0]))
  818.                       ~~~~~~~~~~^~~~~~~~~~~~~~
  819. /home/lordaro/dev/openttd/src/saveload/saveload.h:236:85: note: in definition of macro ‘SLE_GENERAL’
  820.  #define SLE_GENERAL(cmd, base, variable, type, length, from, to) {false, cmd, type, length, from, to, (void*)cpp_offsetof(base, variable), cpp_sizeof(base, variable)}
  821.                                                                                      ^~~~~~
  822. /home/lordaro/dev/openttd/objs/setting/table/settings.h:105:2: note: in expansion of macro ‘SDT_GENERAL’
  823.   SDT_GENERAL(#var, SDT_STRING, SL_STR, type, flags, guiflags, base, var, lengthof(((base*)8)->var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, NULL, from, to, cat)
  824.   ^~~~~~~~~~~
  825. /home/lordaro/dev/openttd/objs/setting/table/settings.h:105:74: note: in expansion of macro ‘lengthof’
  826.   SDT_GENERAL(#var, SDT_STRING, SL_STR, type, flags, guiflags, base, var, lengthof(((base*)8)->var), def, 0, 0, 0, NULL, str, strhelp, strval, proc, NULL, from, to, cat)
  827.                                                                           ^~~~~~~~
  828. /home/lordaro/dev/openttd/objs/setting/table/settings.h:555:1: note: in expansion of macro ‘SDT_STR’
  829.  SDT_STR(GameSettings, locale.digit_decimal_separator, SLE_STRQ, SLF_NO_NETWORK_SYNC, 0, NULL,                              STR_NULL, STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT, STR_NULL, RedrawScreen, 126, SL_MAX_VERSION,        SC_BASIC),
  830.  ^~~~~~~
  831. [SRC] Compiling signal.cpp
  832. [SRC] Compiling signs.cpp
  833. [SRC] Compiling signs_cmd.cpp
  834. [SRC] Compiling signs_gui.cpp
  835. [SRC] Compiling smallmap_gui.cpp
  836. [SRC] Compiling sound.cpp
  837. In file included from /home/lordaro/dev/openttd/src/sound.cpp:22:
  838. /home/lordaro/dev/openttd/src/base_media_func.h: In instantiation of ‘bool BaseSet<T, Tnum_files, Tsearch_in_tars>::FillSetDetails(IniFile*, const char*, const char*, bool) [with T = SoundsSet; long unsigned int Tnum_files = 1; bool Tsearch_in_tars = true]’:
  839. /home/lordaro/dev/openttd/src/base_media_func.h:170:2:   required from ‘bool BaseMedia<Tbase_set>::AddFile(const char*, size_t, const char*) [with Tbase_set = SoundsSet; size_t = long unsigned int]
  840. /home/lordaro/dev/openttd/src/sound.cpp:289:1:   required from here
  841. /home/lordaro/dev/openttd/src/base_media_func.h:43:8: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct BaseSet<SoundsSet, 1, true>’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
  842.   memset(this, 0, sizeof(*this));
  843.   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
  844. In file included from /home/lordaro/dev/openttd/src/base_media_func.h:15,
  845.                  from /home/lordaro/dev/openttd/src/sound.cpp:22:
  846. /home/lordaro/dev/openttd/src/base_media_base.h:48:8: note: ‘struct BaseSet<SoundsSet, 1, true>’ declared here
  847.  struct BaseSet {
  848.         ^~~~~~~
  849. [SRC] Compiling sound/null_s.cpp
  850. [SRC] Compiling sound/sdl_s.cpp
  851. [SRC] Compiling sprite.cpp
  852. [SRC] Compiling spritecache.cpp
  853. [SRC] Compiling spriteloader/grf.cpp
  854. [SRC] Compiling station.cpp
  855. [SRC] Compiling station_cmd.cpp
  856. [SRC] Compiling station_gui.cpp
  857. [SRC] Compiling statusbar_gui.cpp
  858. [SRC] Compiling story.cpp
  859. [SRC] Compiling story_gui.cpp
  860. [SRC] Compiling strgen/strgen_base.cpp
  861. [SRC] Compiling string.cpp
  862. [SRC] Compiling stringfilter.cpp
  863. [SRC] Compiling strings.cpp
  864. [SRC] Compiling subsidy.cpp
  865. [SRC] Compiling subsidy_gui.cpp
  866. [SRC] Compiling terraform_cmd.cpp
  867. [SRC] Compiling terraform_gui.cpp
  868. [SRC] Compiling textbuf.cpp
  869. [SRC] Compiling texteff.cpp
  870. [SRC] Compiling textfile_gui.cpp
  871. [SRC] Compiling tgp.cpp
  872. [SRC] Compiling thread/thread_pthread.cpp
  873. [SRC] Compiling tile_map.cpp
  874. [SRC] Compiling tilearea.cpp
  875. [SRC] Compiling timetable_cmd.cpp
  876. [SRC] Compiling timetable_gui.cpp
  877. [SRC] Compiling toolbar_gui.cpp
  878. [SRC] Compiling town_cmd.cpp
  879. [SRC] Compiling town_gui.cpp
  880. [SRC] Compiling townname.cpp
  881. [SRC] Compiling train_cmd.cpp
  882. [SRC] Compiling train_gui.cpp
  883. [SRC] Compiling transparency_gui.cpp
  884. [SRC] Compiling tree_cmd.cpp
  885. [SRC] Compiling tree_gui.cpp
  886. [SRC] Compiling tunnel_map.cpp
  887. [SRC] Compiling tunnelbridge_cmd.cpp
  888. [SRC] Compiling vehicle.cpp
  889. [SRC] Compiling vehicle_cmd.cpp
  890. [SRC] Compiling vehicle_gui.cpp
  891. [SRC] Compiling vehiclelist.cpp
  892. [SRC] Compiling video/dedicated_v.cpp
  893. [SRC] Compiling video/null_v.cpp
  894. [SRC] Compiling video/sdl_v.cpp
  895. [SRC] Compiling viewport.cpp
  896. [SRC] Compiling viewport_gui.cpp
  897. [SRC] Compiling viewport_sprite_sorter_sse4.cpp
  898. [SRC] Compiling void_cmd.cpp
  899. [SRC] Compiling water_cmd.cpp
  900. [SRC] Compiling waypoint.cpp
  901. [SRC] Compiling waypoint_cmd.cpp
  902. [SRC] Compiling waypoint_gui.cpp
  903. [SRC] Compiling widget.cpp
  904. [SRC] Compiling widgets/dropdown.cpp
  905. [SRC] Compiling window.cpp
  906. [SRC] Linking openttd

Comments