dominus

Untitled

Apr 29th, 2020
116
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. pi@retropie:~/code/exult$ ./autogen.sh
  3. libtoolize: putting auxiliary files in '.'.
  4. libtoolize: copying file './ltmain.sh'
  5. libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
  6. libtoolize: copying file 'm4/libtool.m4'
  7. libtoolize: copying file 'm4/ltoptions.m4'
  8. libtoolize: copying file 'm4/ltsugar.m4'
  9. libtoolize: copying file 'm4/ltversion.m4'
  10. libtoolize: copying file 'm4/lt~obsolete.m4'
  11. configure.ac:153: installing './compile'
  12. configure.ac:14: installing './config.guess'
  13. configure.ac:14: installing './config.sub'
  14. configure.ac:17: installing './install-sh'
  15. configure.ac:17: installing './missing'
  16. Makefile.am: installing './depcomp'
  17. configure.ac: installing './ylwrap'
  18. You are now ready to run ./configure
  19. pi@retropie:~/code/exult$ ./configure
  20. checking build system type... armv7l-unknown-linux-gnueabihf
  21. checking host system type... armv7l-unknown-linux-gnueabihf
  22. checking target system type... armv7l-unknown-linux-gnueabihf
  23. checking for a BSD-compatible install... /usr/bin/install -c
  24. checking whether build environment is sane... yes
  25. checking for a thread-safe mkdir -p... /bin/mkdir -p
  26. checking for gawk... no
  27. checking for mawk... mawk
  28. checking whether make sets $(MAKE)... yes
  29. checking whether make supports nested variables... yes
  30. checking windowing system... X11 (GNU/Linux)
  31. checking for gawk... (cached) mawk
  32. checking for g++... g++
  33. checking whether the C++ compiler works... yes
  34. checking for C++ compiler default output file name... a.out
  35. checking for suffix of executables...
  36. checking whether we are cross compiling... no
  37. checking for suffix of object files... o
  38. checking whether we are using the GNU C++ compiler... yes
  39. checking whether g++ accepts -g... yes
  40. checking whether make supports the include directive... yes (GNU style)
  41. checking dependency style of g++... gcc3
  42. checking whether g++ supports C++17 features with -std=c++17... yes
  43. checking how to run the C++ preprocessor... g++ -std=c++17 -E
  44. checking for flex... flex
  45. checking lex output file root... lex.yy
  46. checking lex library... none needed
  47. checking whether yytext is a pointer... no
  48. checking for bison... bison -y
  49. checking how to print strings... printf
  50. checking for gcc... gcc
  51. checking whether we are using the GNU C compiler... yes
  52. checking whether gcc accepts -g... yes
  53. checking for gcc option to accept ISO C89... none needed
  54. checking whether gcc understands -c and -o together... yes
  55. checking dependency style of gcc... gcc3
  56. checking for a sed that does not truncate output... /bin/sed
  57. checking for grep that handles long lines and -e... /bin/grep
  58. checking for egrep... /bin/grep -E
  59. checking for fgrep... /bin/grep -F
  60. checking for ld used by gcc... /usr/bin/ld
  61. checking if the linker (/usr/bin/ld) is GNU ld... yes
  62. checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  63. checking the name lister (/usr/bin/nm -B) interface... BSD nm
  64. checking whether ln -s works... yes
  65. checking the maximum length of command line arguments... 1572864
  66. checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
  67. checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
  68. checking for /usr/bin/ld option to reload object files... -r
  69. checking for objdump... objdump
  70. checking how to recognize dependent libraries... pass_all
  71. checking for dlltool... no
  72. checking how to associate runtime and link libraries... printf %s\n
  73. checking for ar... ar
  74. checking for archiver @FILE support... @
  75. checking for strip... strip
  76. checking for ranlib... ranlib
  77. checking command to parse /usr/bin/nm -B output from gcc object... ok
  78. checking for sysroot... no
  79. checking for a working dd... /bin/dd
  80. checking how to truncate binary pipes... /bin/dd bs=4096 count=1
  81. checking for mt... mt
  82. checking if mt is a manifest tool... no
  83. checking how to run the C preprocessor... gcc -E
  84. checking for ANSI C header files... yes
  85. checking for sys/types.h... yes
  86. checking for sys/stat.h... yes
  87. checking for stdlib.h... yes
  88. checking for string.h... yes
  89. checking for memory.h... yes
  90. checking for strings.h... yes
  91. checking for inttypes.h... yes
  92. checking for stdint.h... yes
  93. checking for unistd.h... yes
  94. checking for dlfcn.h... yes
  95. checking for objdir... .libs
  96. checking if gcc supports -fno-rtti -fno-exceptions... no
  97. checking for gcc option to produce PIC... -fPIC -DPIC
  98. checking if gcc PIC flag -fPIC -DPIC works... yes
  99. checking if gcc static flag -static works... yes
  100. checking if gcc supports -c -o file.o... yes
  101. checking if gcc supports -c -o file.o... (cached) yes
  102. checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
  103. checking dynamic linker characteristics... GNU/Linux ld.so
  104. checking how to hardcode library paths into programs... immediate
  105. checking whether stripping libraries is possible... yes
  106. checking if libtool supports shared libraries... yes
  107. checking whether to build shared libraries... no
  108. checking whether to build static libraries... yes
  109. checking how to run the C++ preprocessor... g++ -std=c++17 -E
  110. checking for ld used by g++ -std=c++17... /usr/bin/ld
  111. checking if the linker (/usr/bin/ld) is GNU ld... yes
  112. checking whether the g++ -std=c++17 linker (/usr/bin/ld) supports shared libraries... yes
  113. checking for g++ -std=c++17 option to produce PIC... -fPIC -DPIC
  114. checking if g++ -std=c++17 PIC flag -fPIC -DPIC works... yes
  115. checking if g++ -std=c++17 static flag -static works... yes
  116. checking if g++ -std=c++17 supports -c -o file.o... yes
  117. checking if g++ -std=c++17 supports -c -o file.o... (cached) yes
  118. checking whether the g++ -std=c++17 linker (/usr/bin/ld) supports shared libraries... yes
  119. checking dynamic linker characteristics... (cached) GNU/Linux ld.so
  120. checking how to hardcode library paths into programs... immediate
  121. checking for int8_t... yes
  122. checking for int16_t... yes
  123. checking for int32_t... yes
  124. checking for int64_t... yes
  125. checking for intptr_t... yes
  126. checking for uint8_t... yes
  127. checking for uint16_t... yes
  128. checking for uint32_t... yes
  129. checking for uint64_t... yes
  130. checking for uintptr_t... yes
  131. checking for dirent.h that defines DIR... yes
  132. checking for library containing opendir... none required
  133. checking for ANSI C header files... (cached) yes
  134. checking limits.h usability... yes
  135. checking limits.h presence... yes
  136. checking for limits.h... yes
  137. checking sys/time.h usability... yes
  138. checking sys/time.h presence... yes
  139. checking for sys/time.h... yes
  140. checking for unistd.h... (cached) yes
  141. checking for sys/types.h... (cached) yes
  142. checking sys/socket.h usability... yes
  143. checking sys/socket.h presence... yes
  144. checking for sys/socket.h... yes
  145. checking netdb.h usability... yes
  146. checking netdb.h presence... yes
  147. checking for netdb.h... yes
  148. checking sys/wait.h usability... yes
  149. checking sys/wait.h presence... yes
  150. checking for sys/wait.h... yes
  151. checking signal.h usability... yes
  152. checking signal.h presence... yes
  153. checking for signal.h... yes
  154. checking png.h usability... yes
  155. checking png.h presence... yes
  156. checking for png.h... yes
  157. checking for an ANSI C-conforming const... yes
  158. checking for inline... inline
  159. checking for size_t... yes
  160. checking whether time.h and sys/time.h may both be included... yes
  161. checking whether struct tm is in sys/time.h or time.h... time.h
  162. checking for working memcmp... yes
  163. checking for atexit... yes
  164. checking for dup2... yes
  165. checking for getcwd... yes
  166. checking for isascii... yes
  167. checking for memchr... yes
  168. checking for memmove... yes
  169. checking for memset... yes
  170. checking for mkdir... yes
  171. checking for pow... yes
  172. checking for select... yes
  173. checking for socket... yes
  174. checking for strcasecmp... yes
  175. checking for strchr... yes
  176. checking for strstr... yes
  177. checking for strtol... yes
  178. checking for strtoul... yes
  179. checking for getaddrinfo()... yes
  180. checking for mkstemp()... yes
  181. checking for special X11 libraries... no
  182. checking if we want to statically compile libraries... no
  183. checking for pkg-config... /usr/bin/pkg-config
  184. checking pkg-config is at least version 0.9.0... yes
  185. checking for sdl2-config... /usr/bin/sdl2-config
  186. checking for SDL - version >= 2.0.1... yes
  187. checking for OGG... yes
  188. checking for GLADE... no
  189. checking for LIBGNOMEUI... no
  190. checking if we want to use timidity midi... yes
  191. checking alsa/asoundlib.h usability... yes
  192. checking alsa/asoundlib.h presence... yes
  193. checking for alsa/asoundlib.h... yes
  194. checking if we want to use ALSA midi... yes
  195. checking fluidsynth.h usability... no
  196. checking fluidsynth.h presence... no
  197. checking for fluidsynth.h... no
  198. checking if we want to use fluidsynth midi... no; fluidsynth.h not found
  199. checking if we should build mt32emu... no
  200. checking zlib.h usability... yes
  201. checking zlib.h presence... yes
  202. checking for zlib.h... yes
  203. checking for zipped savegame support... yes
  204. checking if we should build all hq scaler... yes
  205. checking if we should build the hq2x scaler... yes
  206. checking if we should build the hq3x scaler... yes
  207. checking if we should build the hq4x scaler... yes
  208. checking if we should build the 2xBR, 3xBR and 4xBR scalers... yes
  209. checking whether to enable midi sfx... no
  210. checking whether to enable support for Exult Studio... no
  211. checking desired optimization level... from CXXFLAGS
  212. checking whether to enable debugging mode... from CXXFLAGS
  213. checking whether to enable sanitizers... no
  214. checking if we should disable the SDL parachute... no
  215. checking whether C++ compiler accepts -Wall... yes
  216. checking whether C++ compiler accepts -Wextra... yes
  217. checking whether C++ compiler accepts -pedantic... yes
  218. checking whether C++ compiler accepts -Walloc-zero... yes
  219. checking whether C++ compiler accepts -Walloca... yes
  220. checking whether C++ compiler accepts -Wc++14-compat... yes
  221. checking whether C++ compiler accepts -Wc++17-compat... yes
  222. checking whether C++ compiler accepts -Wcatch-value=3... yes
  223. checking whether C++ compiler accepts -Wcast-align... yes
  224. checking whether C++ compiler accepts -Wcast-qual... yes
  225. checking whether C++ compiler accepts -Wconditionally-supported... yes
  226. checking whether C++ compiler accepts -Wctor-dtor-privacy... yes
  227. checking whether C++ compiler accepts -Wdisabled-optimization... yes
  228. checking whether C++ compiler accepts -Wduplicated-branches... yes
  229. checking whether C++ compiler accepts -Wduplicated-cond... yes
  230. checking whether C++ compiler accepts -Wextra-semi... yes
  231. checking whether C++ compiler accepts -Wformat-nonliteral... no
  232. checking whether C++ compiler accepts -Wformat-security... no
  233. checking whether C++ compiler accepts -Wlogical-not-parentheses... yes
  234. checking whether C++ compiler accepts -Wlogical-op... yes
  235. checking whether C++ compiler accepts -Wmissing-include-dirs... yes
  236. checking whether C++ compiler accepts -Wnon-virtual-dtor... yes
  237. checking whether C++ compiler accepts -Wnull-dereference... yes
  238. checking whether C++ compiler accepts -Wold-style-cast... yes
  239. checking whether C++ compiler accepts -Woverloaded-virtual... yes
  240. checking whether C++ compiler accepts -Wplacement-new... yes
  241. checking whether C++ compiler accepts -Wredundant-decls... yes
  242. checking whether C++ compiler accepts -Wshift-negative-value... yes
  243. checking whether C++ compiler accepts -Wshift-overflow... yes
  244. checking whether C++ compiler accepts -Wtrigraphs... yes
  245. checking whether C++ compiler accepts -Wundef... yes
  246. checking whether C++ compiler accepts -Wuninitialized... yes
  247. checking whether C++ compiler accepts -Wuseless-cast... yes
  248. checking whether C++ compiler accepts -Wwrite-strings... yes
  249. checking whether C++ compiler accepts -Wzero-as-null-pointer-constant... yes
  250. checking whether C++ compiler accepts -Wunused-const-variables... no
  251. checking whether C++ compiler accepts -Wabsolute-value... no
  252. checking whether C++ compiler accepts -Wdeprecated-register... no
  253. checking whether C++ compiler accepts -Wmismatched-tags... no
  254. checking whether C++ compiler accepts -Wunused-private-field... no
  255. checking whether to build only the main program... no
  256. checking whether to build the usecode compiler... no
  257. checking whether to build the data files... yes
  258. checking whether to build the Exult mods... no
  259. checking for freetype-config... no
  260. checking whether to build Exult Studio... no
  261. checking whether to enable the usecode debugger... no
  262. checking whether to display the usecode container in Gumps... no
  263. checking whether to display non-readied objects in Gumps... no
  264. checking whether to build the Gnome SHP Thumbnailer... no
  265. checking whether to build the GIMP plugin... no
  266. checking that generated files are newer than configure... done
  267. configure: creating ./config.status
  268. config.status: creating exult.spec
  269. config.status: creating Info.plist
  270. config.status: creating Makefile
  271. config.status: creating audio/Makefile
  272. config.status: creating audio/midi_drivers/Makefile
  273. config.status: creating audio/midi_drivers/timidity/Makefile
  274. config.status: creating audio/midi_drivers/mt32emu/Makefile
  275. config.status: creating conf/Makefile
  276. config.status: creating content/Makefile
  277. config.status: creating content/sifixes/Makefile
  278. config.status: creating content/si/Makefile
  279. config.status: creating content/bgkeyring/Makefile
  280. config.status: creating content/bg/Makefile
  281. config.status: creating content/islefaq/Makefile
  282. config.status: creating files/Makefile
  283. config.status: creating files/sha1/Makefile
  284. config.status: creating files/zip/Makefile
  285. config.status: creating gamemgr/Makefile
  286. config.status: creating gumps/Makefile
  287. config.status: creating pathfinder/Makefile
  288. config.status: creating flic/Makefile
  289. config.status: creating tools/Makefile
  290. config.status: creating data/Makefile
  291. config.status: creating docs/Makefile
  292. config.status: creating desktop/Makefile
  293. config.status: creating objs/Makefile
  294. config.status: creating imagewin/Makefile
  295. config.status: creating shapes/Makefile
  296. config.status: creating shapes/shapeinf/Makefile
  297. config.status: creating usecode/Makefile
  298. config.status: creating usecode/compiler/Makefile
  299. config.status: creating usecode/ucxt/Makefile
  300. config.status: creating usecode/ucxt/Docs/Makefile
  301. config.status: creating usecode/ucxt/data/Makefile
  302. config.status: creating usecode/ucxt/include/Makefile
  303. config.status: creating usecode/ucxt/src/Makefile
  304. config.status: creating mapedit/Makefile
  305. config.status: creating server/Makefile
  306. config.status: creating config.h
  307. config.status: executing depfiles commands
  308. config.status: executing libtool commands
  309.  
  310. Exult v1.7.0git
  311.  
  312. SDL ....................... : 2.0.10
  313.  
  314. Build tools................ : yes
  315. Build usecode compiler..... : no
  316. Build Exult mods........... : no
  317. Build Exult Studio......... : no
  318. Exult Studio support....... : no
  319.  
  320. Build all HQ scalers....... : yes
  321. Build NxBR scalers......... : yes
  322.  
  323. Now type 'make' to build Exult
  324. pi@retropie:~/code/exult$ make -j9 -s
  325.  
  326.  
  327. Flex.cc: In static member function 'static void Flex_header::write(ODataSource*, const char*, std::size_t, Flex_header::Flex_vers)':
  328. Flex.cc:69:39: warning: useless cast to type 'using uint32 = uint32_t' {aka 'unsigned int'} [-Wuseless-cast]
  329. out->write4(static_cast<uint32>(count));
  330. ^
  331. Flex.cc: In member function 'void Flex_writer::finish_object()':
  332. Flex.cc:199:56: warning: useless cast to type 'using uint32 = uint32_t' {aka 'unsigned int'} [-Wuseless-cast]
  333. Write4(tptr, static_cast<uint32>(cur_start - start_pos)); // Store start of section.
  334. ^
  335. Flex.cc:200:50: warning: useless cast to type 'using uint32 = uint32_t' {aka 'unsigned int'} [-Wuseless-cast]
  336. Write4(tptr, static_cast<uint32>(pos - cur_start)); // Store length.
  337. ^
  338.  
  339.  
  340. expack.cc: In function 'int main(int, char**)':
  341. expack.cc:278:48: warning: useless cast to type 'using uint32 = uint32_t' {aka unsigned int'} [-Wuseless-cast]
  342. auto buf = f->retrieve(static_cast<uint32>(i), len);
  343. ^
  344.  
  345.  
  346. fontgen.cc:40:13: warning: 'void Gen_shadow(unsigned char*, int, int, unsigned char, unsigned char)' defined but not used [-Wunused-function]
  347. static void Gen_shadow(
  348. ^~~~~~~~~~
  349.  
  350.  
  351.  
  352. font.cc: In member function 'int Font::paint_text_box(Image_buffer8*, const char*, int, int, int, int, int, bool, bool, Cursor_info*)':
  353. font.cc:233:40: warning: useless cast to type 'int' [-Wuseless-cast]
  354. return -static_cast<int>(text - start); // Return -offset of end.
  355. ^
  356. font.cc: In member function 'int Font::paint_text_box_fixedwidth(Image_buffer8*, const char*, int, int, int, int, int, int, int)':
  357. font.cc:351:40: warning: useless cast to type 'int' [-Wuseless-cast]
  358. int w = static_cast<int>(wrd - text) * char_width;
  359. ^
  360. font.cc:376:43: warning: useless cast to type 'int' [-Wuseless-cast]
  361. int width = static_cast<int>(ewrd - text) * char_width;
  362. ^
  363. font.cc:423:40: warning: useless cast to type 'int' [-Wuseless-cast]
  364. return -static_cast<int>(text - start); // Return -offset of end.
  365. ^
  366. font.cc: In member function 'int Font::find_cursor(const char*, int, int, int, int, int, int, int)':
  367. font.cc:575:41: warning: useless cast to type 'int' [-Wuseless-cast]
  368. return static_cast<int>(text - start);
  369. ^
  370. font.cc:590:41: warning: useless cast to type 'int' [-Wuseless-cast]
  371. return static_cast<int>(text - start);
  372. ^
  373. font.cc:620:45: warning: useless cast to type 'int' [-Wuseless-cast]
  374. return static_cast<int>(text - start - 1);
  375. ^
  376. font.cc:629:62: warning: useless cast to type 'int' [-Wuseless-cast]
  377. int woff = find_xcursor(text, static_cast<int>(ewrd - text), cx - curx);
  378. ^
  379. font.cc:631:41: warning: useless cast to type 'int' [-Wuseless-cast]
  380. return static_cast<int>(text - start) + woff;
  381. ^
  382. font.cc:638:39: warning: useless cast to type 'int' [-Wuseless-cast]
  383. return static_cast<int>(text - start);
  384. ^
  385. font.cc:639:39: warning: useless cast to type 'int' [-Wuseless-cast]
  386. return -static_cast<int>(text - start); // Failed, so indicate where we are.
  387. ^
  388. font.cc: In member function 'int Font::find_xcursor(const char*, int, int)':
  389. font.cc:661:45: warning: useless cast to type 'int' [-Wuseless-cast]
  390. return static_cast<int>(text - 1 - start);
  391. ^
  392. In file included from /usr/include/SDL2/SDL_video.h:31,
  393. from ./../imagewin/imagewin.h:37,
  394. from ./../imagewin/iwin8.h:29,
  395. from ../gamewin.h:26,
  396. from miscinf.cc:33:
  397. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  398. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  399. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  400. ^
  401. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  402. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  403. ^~~~~~~~~~~~~~~
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411. In file included from ibuf16.cc:26:
  412. ibuf16.h: In member function 'short unsigned int* Image_buffer16::get_pixels()':
  413. ibuf16.h:35:49: warning: cast from 'unsigned char*' to 'short unsigned int*' increases required alignment of target type [-Wcast-align]
  414. return reinterpret_cast<unsigned short *>(bits);
  415. ^
  416. ibuf16.cc: In member function 'virtual void Image_buffer16::get(Image_buffer*, int, int)':
  417. ibuf16.cc:177:68: warning: cast from 'unsigned char*' to 'short unsigned int*' increases required alignment of target type [-Wcast-align]
  418. unsigned short *to = reinterpret_cast<unsigned short *>(dest->bits) +
  419. ^
  420. ibuf16.cc: In member function 'virtual void Image_buffer16::put(Image_buffer*, int, int)':
  421. ibuf16.cc:199:69: warning: cast from 'unsigned char*' to 'short unsigned int*' increases required alignment of target type [-Wcast-align]
  422. Image_buffer16::copy16(reinterpret_cast<unsigned short *>(src->bits),
  423. ^
  424. ibuf8.cc: In member function 'virtual void Image_buffer8::copy8(const unsigned char*, int, int, int, int)':
  425. ibuf8.cc:211:75: warning: cast from 'unsigned char*' to 'uint32*' {aka 'unsigned int*'} increases required alignment of target type [-Wcast-align]
  426. uint32 *to = reinterpret_cast<uint32 *>(bits + desty * line_width + destx);
  427. ^
  428. ibuf8.cc:212:92: warning: cast from 'const unsigned char*' to 'const uint32*' {aka 'const unsigned int*'} increases required alignment of target type [-Wcast-align]
  429. const uint32 *from = reinterpret_cast<const uint32 *>(src_pixels + srcy * src_width + srcx);
  430. ^
  431. ibuf8.cc:234:48: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'uint32*' {aka 'unsigned int*'} increases required alignment of target type [-Wcast-alig]
  432. to = reinterpret_cast<uint32 *>(to8 + to_next);
  433. ^
  434. ibuf8.cc:235:60: warning: cast from 'const uint8*' {aka 'const unsigned char*'} to 'const uint32*' {aka 'const unsigned int*'} increases required alignment of target type [-Wcast-align]
  435. from = reinterpret_cast<const uint32 *>(from8 + from_next);
  436. ^
  437.  
  438.  
  439.  
  440. In file included from BilinearScalerInternal_2x.cpp:21:
  441. BilinearScalerInternal_2x.cpp: In instantiation of 'bool Pentagram::BilinearScalerInternal_2x(SDL_Surface*, sint32, sint32, sint32, sint32, uint8*, sint32, sint32, sint32, bool) [with uintX = unsigned int; Manip = ManipStoD<color_8, color_32>; uintS = unsigned char; SDL_Surface = SDL_Surface; sint32 = int; uint8 = unsigned char]':
  442. BilinearScalerInternal_2x.cpp:183:1: required from here
  443. BilinearScalerInternal.h:42:5: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  444. *(reinterpret_cast<uintX*>(pixel)) = Manip::rgb(a[0], a[1], a[2]); \
  445. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  446.  
  447. BilinearScalerInternal.h:43:5: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  448. *(reinterpret_cast<uintX*>(pixel+sizeof(uintX))) = Manip::rgb((a[0]+f[0])>>1, (a[1]+f[1])>>1, (a[2]+f[2])>>1); \
  449. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  450.  
  451. BilinearScalerInternal.h:45:5: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  452. *(reinterpret_cast<uintX*>(pixel)) = Manip::rgb((a[0]+b[0])>>1, (a[1]+b[1])>>1, (a[2]+b[2])>>1);\
  453. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  454.  
  455. BilinearScalerInternal.h:46:5: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  456. *(reinterpret_cast<uintX*>(pixel+sizeof(uintX))) = Manip::rgb((a[0]+b[0]+f[0]+g[0])>>2, (a[1]+b[1]+f[1]+g[1])>>2, (a[2]+b[2]+f[2]+g[2])>>2);\
  457. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458.  
  459. BilinearScalerInternal.h:42:5: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  460. *(reinterpret_cast<uintX*>(pixel)) = Manip::rgb(a[0], a[1], a[2]); \
  461. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462.  
  463.  
  464. In file included from /usr/include/SDL2/SDL_video.h:31,
  465. from imagewin.h:37,
  466. from ArbScaler.h:23,
  467. from BilinearScaler.h:23,
  468. from BilinearScalerInternal.h:20,
  469. from BilinearScalerInternal_Arb.cpp:21:
  470. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  471. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  472. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  473. ^
  474. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  475. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  476. ^~~~~~~~~~~~~~~
  477. In file included from /usr/include/SDL2/SDL_video.h:31,
  478. from imagewin.h:37,
  479. from ArbScaler.h:23,
  480. from BilinearScaler.h:23,
  481. from BilinearScalerInternal.h:20,
  482. from BilinearScalerInternal_X1Y12.cpp:21:
  483. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  484. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  485. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  486. ^
  487. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  488. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  489. ^~~~~~~~~~~~~~~
  490.  
  491. In file included from BilinearScalerInternal_Arb.cpp:21:
  492. BilinearScalerInternal_Arb.cpp: In instantiation of 'bool Pentagram::BilinearScalerInternal_Arb(SDL_Surface*, sint32, sint32, sint32, sint32, uint8*, sint32, sint32, sint32, bool) [with uintX = unsigned int; Manip = ManipStoD<color_8, color_32>; uintS = unsigned char; SDL_Surface = SDL_Surface; sint32 = int; uint8 = unsigned char]':
  493. BilinearScalerInternal_Arb.cpp:255:1: required from here
  494. BilinearScalerInternal.h:36:4: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  495. *reinterpret_cast<uintX*>(pixel) = Manip::rgb( \
  496. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497. BilinearScalerInternal.h:125:7: note: in expansion of macro 'FilterPixel'
  498. FilterPixel(a,b,f,g,(end_x-pos_x)>>8,(end_y-pos_y)>>8);\
  499. ^~~~~~~~~~~
  500.  
  501. BilinearScalerInternal.h:36:4: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  502. *reinterpret_cast<uintX*>(pixel) = Manip::rgb( \
  503. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  504.  
  505. In file included from BilinearScalerInternal_X1Y12.cpp:21:
  506. BilinearScalerInternal_X1Y12.cpp: In instantiation of 'bool Pentagram::BilinearScalerInternal_X1Y12(SDL_Surface*, sint32, sint32, sint32, sint32, uint8*, sint32, sint32, sint32, bool) [with uintX = unsigned int; Manip = ManipStoD<color_8, color_32>; uintS = unsigned char; SDL_Surface = SDL_Surface; sint32 = int; uint8 = unsigned char]':
  507. BilinearScalerInternal_X1Y12.cpp:92:1: required from here
  508. BilinearScalerInternal.h:100:4: warning: cast from 'uint8*' {aka 'unsigned char'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  509. *(reinterpret_cast<uintX*>(pixel)) = Manip::rgb( \
  510. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  511.  
  512.  
  513. In file included from /usr/include/SDL2/SDL_video.h:31,
  514. from imagewin.h:37,
  515. from ArbScaler.h:23,
  516. from BilinearScaler.h:23,
  517. from BilinearScalerInternal.h:20,
  518. from BilinearScalerInternal_X2Y24.cpp:21:
  519. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  520. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  521. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  522. ^
  523. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  524. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  525. ^~~~~~~~~~~~~~~
  526.  
  527.  
  528. In file included from BilinearScalerInternal_X2Y24.cpp:21:
  529. BilinearScalerInternal_X2Y24.cpp: In instantiation of 'bool Pentagram::BilinearScalerInternal_X2Y24(SDL_Surface*, sint32, sint32, sint32, sint32, uint8*, sint32, sint32, sint32, bool) [with uintX = unsigned int; Manip = ManipStoD<color_8, color_32>; uintS = unsigned char; SDL_Surface = SDL_Surface; sint32 = int; uint8 = unsigned char]':
  530. BilinearScalerInternal_X2Y24.cpp:154:1: required from here
  531. BilinearScalerInternal.h:50:4: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  532. *(reinterpret_cast<uintX*>(pixel)) = Manip::rgb( \
  533. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  534.  
  535. BilinearScalerInternal.h:52:4: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  536. *(reinterpret_cast<uintX*>(pixel+sizeof(uintX))) = Manip::rgb( \
  537. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  538.  
  539.  
  540. In file included from /usr/include/SDL2/SDL_video.h:31,
  541. from imagewin.h:37,
  542. from ArbScaler.h:23,
  543. from PointScaler.h:23,
  544. from PointScaler.cpp:21:
  545. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  546. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  547. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  548. ^
  549. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  550. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  551. ^~~~~~~~~~~~~~~
  552.  
  553.  
  554.  
  555. BilinearScalerInternal_X2Y24.cpp: In instantiation of 'bool Pentagram::BilinearScalerInternal_X2Y24(SDL_Surface*, sint32, sint32, sint32, sint32, uint8*, sint32, sint32, sint32, bool) [with uintX = short unsigned int; Manip = ManipStoD<color_8, color_565>; uintS = unsigned char; SDL_Surface = SDL_Surface; sint32 = int; uint8 = unsigned char]':
  556. BilinearScalerInternal_X2Y24.cpp:154:1: required from here
  557. BilinearScalerInternal.h:50:4: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'short unsigned int*' increases required alignment of target type [-Wcast-align]
  558. *(reinterpret_cast<uintX*>(pixel)) = Manip::rgb( \
  559. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  560.  
  561.  
  562. BilinearScalerInternal.h:52:4: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'short unsigned int*' increases required alignment of target type [-Wcast-align]
  563. *(reinterpret_cast<uintX*>(pixel+sizeof(uintX))) = Manip::rgb( \
  564. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  565.  
  566.  
  567. PointScaler.cpp: In instantiation of 'static bool Pentagram::PointScalerInternal<uintX, Manip, uintS>::Scale(SDL_Surface*, sint32, sint32, sint32, sint32, uint8*, sint32, sint32, sint32, bool) [with uintX = unsigned int; Manip = ManipStoD<color_8, color_32>; uintS = unsigned char; SDL_Surface = SDL_Surface; sint32 = int; uint8 = unsigned char]':
  568. PointScaler.cpp:288:63: required from here
  569. PointScaler.cpp:58:8: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  570. *(reinterpret_cast<uintX *>(pixel + 0)) = p;
  571. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  572. PointScaler.cpp:59:8: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  573. *(reinterpret_cast<uintX *>(pixel + sizeof(uintX))) = p;
  574. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  575. PointScaler.cpp:60:8: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  576. *(reinterpret_cast<uintX *>(pixel2 + 0)) = p;
  577. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  578. PointScaler.cpp:61:8: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  579. *(reinterpret_cast<uintX *>(pixel2 + sizeof(uintX))) = p;
  580. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  581. PointScaler.cpp:104:10: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  582. *(reinterpret_cast<uintX *>(pixel)) = p;
  583. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  584.  
  585. PointScaler.cpp:155:9: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  586. *(reinterpret_cast<uintX *>(pixel + 0)) = p;
  587. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  588. PointScaler.cpp:156:9: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  589. *(reinterpret_cast<uintX *>(pixel + sizeof(uintX))) = p;
  590. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  591. PointScaler.cpp:200:9: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  592. *(reinterpret_cast<uintX *>(pixel)) = p;
  593. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  594. PointScaler.cpp:253:10: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'unsigned int*' increases required alignment of target type [-Wcast-align]
  595. *(reinterpret_cast<uintX *>(pixel)) = p;
  596. ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604. stackframe.cc: In function 'std::ostream& operator<<(std::ostream&, Stack_frame&)':
  605. stackframe.cc:86:47: warning: useless cast to type 'int' [-Wuseless-cast]
  606. << static_cast<int>(frame.ip - frame.code) << " in 0x"
  607. ^
  608.  
  609. In file included from ./../include/ucdata.h:27,
  610. from ucfunc.cc:23:
  611. ./../include/ucfunc.h: In member function 'unsigned int GotoSet::size() const':
  612. ./../include/ucfunc.h:152:48: warning: useless cast to type 'unsigned int' [-Wuseless-cast]
  613. return static_cast<unsigned int>(_uccs.size());
  614. ^
  615. In file included from ./../include/ucdata.h:27,
  616. from ucxt.cc:50:
  617. ./../include/ucfunc.h: In member function 'unsigned int GotoSet::size() const':
  618. ./../include/ucfunc.h:152:48: warning: useless cast to type 'unsigned int' [-Wuseless-cast]
  619. return static_cast<unsigned int>(_uccs.size());
  620. ^
  621. In file included from ./../include/ucdata.h:27,
  622. from ucdata.cc:32:
  623. ./../include/ucfunc.h: In member function 'unsigned int GotoSet::size() const':
  624. ./../include/ucfunc.h:152:48: warning: useless cast to type 'unsigned int' [-Wuseless-cast]
  625. return static_cast<unsigned int>(_uccs.size());
  626. ^
  627.  
  628.  
  629. timidity_common.cpp: In function 'void* Timidity_Pentagram::safe_malloc(size_t)':
  630. timidity_common.cpp:221:40: warning: useless cast to type 'unsigned int' [-Wuseless-cast]
  631. static_cast<unsigned>(count));
  632. ^
  633. timidity_common.cpp:227:40: warning: useless cast to type 'unsigned int' [-Wuseless-cast]
  634. static_cast<unsigned>(count));
  635. ^
  636. In file included from /usr/include/SDL2/SDL_main.h:25,
  637. from /usr/include/SDL2/SDL.h:32,
  638. from timidity.cpp:32:
  639. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  640. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  641. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  642. ^
  643. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  644. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  645. ^~~~~~~~~~~~~~~
  646.  
  647.  
  648.  
  649.  
  650. In file included from /usr/include/SDL2/SDL_main.h:25,
  651. from /usr/include/SDL2/SDL.h:32,
  652. from LowLevelMidiDriver.h:30,
  653. from LowLevelMidiDriver.cpp:23:
  654. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  655. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  656. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  657. ^
  658. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  659. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  660. ^~~~~~~~~~~~~~~
  661. fmopl.cpp: In function 'FMOpl_Pentagram::FM_OPL* FMOpl_Pentagram::OPLCreate(int, int, int)':
  662. fmopl.cpp:1143:44: warning: cast from 'char*' to 'FMOpl_Pentagram::FM_OPL*' increases required alignment of target type [-Wcast-align]
  663. OPL = reinterpret_cast<FM_OPL *>(ptr); ptr += sizeof(FM_OPL);
  664. ^
  665. fmopl.cpp:1144:44: warning: cast from 'char*' to 'FMOpl_Pentagram::OPL_CH*' increases required alignment of target type [-Wcast-align]
  666. OPL->P_CH = reinterpret_cast<OPL_CH *>(ptr); ptr += sizeof(OPL_CH) * max_ch;
  667. ^
  668. In file included from /usr/include/SDL2/SDL_main.h:25,
  669. from /usr/include/SDL2/SDL.h:32,
  670. from LowLevelMidiDriver.h:30,
  671. from FMOplMidiDriver.h:24,
  672. from FMOplMidiDriver.cpp:23:
  673. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  674. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  675. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  676. ^
  677. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  678. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  679. ^~~~~~~~~~~~~~~
  680. In file included from /usr/include/SDL2/SDL_main.h:25,
  681. from /usr/include/SDL2/SDL.h:32,
  682. from LowLevelMidiDriver.h:30,
  683. from FMOplMidiDriver.h:24,
  684. from MidiDriver.cpp:27:
  685. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  686. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  687. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  688. ^
  689. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  690. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  691. ^~~~~~~~~~~~~~~
  692. In file included from /usr/include/SDL2/SDL_main.h:25,
  693. from /usr/include/SDL2/SDL.h:32,
  694. from LowLevelMidiDriver.h:30,
  695. from TimidityMidiDriver.h:24,
  696. from TimidityMidiDriver.cpp:20:
  697. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  698. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  699. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  700. ^
  701. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  702. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  703. ^~~~~~~~~~~~~~~
  704. In file included from /usr/include/SDL2/SDL_main.h:25,
  705. from /usr/include/SDL2/SDL.h:32,
  706. from LowLevelMidiDriver.h:30,
  707. from ALSAMidiDriver.h:26,
  708. from ALSAMidiDriver.cpp:27:
  709. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  710. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  711. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  712. ^
  713. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  714. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  715. ^~~~~~~~~~~~~~~
  716.  
  717.  
  718. AudioChannel.cc: In member function 'void Pentagram::AudioChannel::resampleFrameM16toS(sint16*&, uint32&)':
  719. AudioChannel.cc:480:46: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  720. int c = *reinterpret_cast<sint16 *>(src+4);
  721. ^
  722. AudioChannel.cc:483:45: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  723. int c = *reinterpret_cast<sint16 *>(src2);
  724. ^
  725. AudioChannel.cc: In member function 'void Pentagram::AudioChannel::resampleFrameM16toM(sint16*&, uint32&)':
  726. AudioChannel.cc:543:46: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  727. int c = *reinterpret_cast<sint16 *>(src+4);
  728. ^
  729. AudioChannel.cc:546:45: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  730. int c = *reinterpret_cast<sint16 *>(src2);
  731. ^
  732. AudioChannel.cc: In member function 'void Pentagram::AudioChannel::resampleFrameS16toM(sint16*&, uint32&)':
  733. AudioChannel.cc:599:47: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  734. int c = *reinterpret_cast<sint16 *>(src+8);
  735. ^
  736. AudioChannel.cc:600:48: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  737. int c2 = *reinterpret_cast<sint16 *>(src+10);
  738. ^
  739. AudioChannel.cc:604:46: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  740. int c = *reinterpret_cast<sint16 *>(src2);
  741. ^
  742. AudioChannel.cc:605:48: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  743. int c2 = *reinterpret_cast<sint16 *>(src2+2);
  744. ^
  745. AudioChannel.cc: In member function 'void Pentagram::AudioChannel::resampleFrameS16toS(sint16*&, uint32&)':
  746. AudioChannel.cc:660:47: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  747. int c = *reinterpret_cast<sint16 *>(src+8);
  748. ^
  749. AudioChannel.cc:661:48: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  750. int c2 = *reinterpret_cast<sint16 *>(src+10);
  751. ^
  752. AudioChannel.cc:665:46: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  753. int c = *reinterpret_cast<sint16 *>(src2);
  754. ^
  755. AudioChannel.cc:666:48: warning: cast from 'uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  756. int c2 = *reinterpret_cast<sint16 *>(src2+2);
  757. ^
  758. RawAudioSample.cc: In member function 'virtual uint32 Pentagram::RawAudioSample::decompressFrame(void*, void*) const':
  759. RawAudioSample.cc:96:82: warning: cast from 'std::unique_ptr<unsigned char []>::pointer' {aka 'unsigned char*'} to 'const uint16*' {aka 'const short unsigned int*'} increases required alignment of target type [-Wcast-align]
  760. const uint16 *src = reinterpret_cast<const uint16 *>(buffer.get() + decomp->pos);
  761. ^
  762. In file included from /usr/include/SDL2/SDL_main.h:25,
  763. from /usr/include/SDL2/SDL.h:32,
  764. from AudioMixer.cc:27:
  765. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  766. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  767. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  768. ^
  769. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  770. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  771. ^~~~~~~~~~~~~~~
  772. In file included from /usr/include/SDL2/SDL_main.h:25,
  773. from /usr/include/SDL2/SDL.h:32,
  774. from OggAudioSample.cc:23:
  775. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  776. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  777. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  778. ^
  779. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  780. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  781. ^~~~~~~~~~~~~~~
  782. In file included from /usr/include/SDL2/SDL_audio.h:31,
  783. from Audio.cc:22:
  784. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  785. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  786. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  787. ^
  788. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  789. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  790. ^~~~~~~~~~~~~~~
  791. In file included from /usr/include/SDL2/SDL_video.h:31,
  792. from ./../imagewin/imagewin.h:37,
  793. from ./../imagewin/iwin8.h:29,
  794. from ../mouse.h:26,
  795. from ../exult.h:22,
  796. from Midi.cc:31:
  797. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  798. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  799. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  800. ^
  801. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  802. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  803. ^~~~~~~~~~~~~~~
  804. AudioMixer.cc: In static member function 'static void Pentagram::AudioMixer::sdlAudioCallback(void*, Uint8*, int)':
  805. AudioMixer.cc:301:50: warning: cast from 'Uint8*' {aka 'unsigned char*'} to 'sint16*' {aka 'short int*'} increases required alignment of target type [-Wcast-align]
  806. mixer->MixAudio(reinterpret_cast<sint16*>(stream), len);
  807. ^
  808.  
  809.  
  810.  
  811.  
  812. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  813. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  814. ^~~~~~~~~~~~~~~
  815. In file included from /usr/include/SDL2/SDL_video.h:31,
  816. from ./../imagewin/imagewin.h:37,
  817. from ./../imagewin/iwin8.h:29,
  818. from ../mouse.h:26,
  819. from Gump_manager.h:25,
  820. from Notebook_gump.cc:25:
  821. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  822. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  823. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  824. ^
  825. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  826. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  827. ^~~~~~~~~~~~~~~
  828. Gamemenu_gump.cc: At global scope:
  829. Gamemenu_gump.cc:57:20: warning: 'quitmenutext' defined but not used [-Wunused-variable]
  830. static const char *quitmenutext = "Quit to Menu";
  831. ^~~~~~~~~~~~
  832.  
  833.  
  834. Newfile_gump.cc: In member function 'void Newfile_gump::LoadSaveGameDetails()':
  835. Newfile_gump.cc:918:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 18 equals destination size [-Wstringop-truncation]
  836. strncpy(cur_party[i].name, namestr.c_str(), 18);
  837. ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  838. In file included from /usr/include/SDL2/SDL_video.h:31,
  839. from ./../imagewin/imagewin.h:37,
  840. from ./../imagewin/iwin8.h:29,
  841. from ../gamewin.h:26,
  842. from Face_button.cc:26:
  843. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  844. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  845. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  846. ^
  847. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  848. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  849. ^~~~~~~~~~~~~~~
  850. In file included from /usr/include/SDL2/SDL_events.h:31,
  851. from Gump_manager.cc:25:
  852. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  853. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  854. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  855. ^
  856. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  857. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  858. ^~~~~~~~~~~~~~~
  859. In file included from /usr/include/SDL2/SDL_video.h:31,
  860. from ./../imagewin/imagewin.h:37,
  861. from ./../imagewin/iwin8.h:29,
  862. from ../gamewin.h:26,
  863. from Jawbone_gump.cc:26:
  864. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  865. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  866. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  867. ^
  868. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  869. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  870. ^~~~~~~~~~~~~~~
  871. In file included from /usr/include/SDL2/SDL_video.h:31,
  872. from ./../imagewin/imagewin.h:37,
  873. from ./../imagewin/iwin8.h:29,
  874. from ../gamewin.h:26,
  875. from CombatStats_gump.cc:25:
  876. /usr/include/SDL2/SDL_endian.h: In function 'Uint32 SDL_Swap32(Uint32)':
  877. /usr/include/SDL2/SDL_stdinc.h:134:71: warning: useless cast to type 'Uint32' {aka 'unsigned int'} [-Wuseless-cast]
  878. #define SDL_static_cast(type, expression) static_cast<type>(expression)
  879. ^
  880. /usr/include/SDL2/SDL_endian.h:164:12: note: in expansion of macro 'SDL_static_cast'
  881. return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) |
  882. ^~~~~~~~~~~~~~~
  883.  
  884.  
  885.  
  886. combat.cc: In function 'void Combat_schedule::start_battle()':
  887. combat.cc:107:83: warning: potential null pointer dereference [-Wnull-dereference]
  888. (!opponents.empty() || (npc->get_target() && npc->get_target()->as_actor()))) {
  889. ^
  890.  
  891. gamedat.cc: In member function 'void Game_window::write_saveinfo()':
  892. gamedat.cc:488:11: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 18 equals destination size [-Wstringop-truncation]
  893. strncpy(name, namestr.c_str(), 18);
  894. ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
  895.  
  896.  
  897. gamewin.cc: In member function 'void Game_window::add_npc(Actor*, int)':
  898. gamewin.cc:786:47: warning: potential null pointer dereference [-Wnull-dereference]
  899. assert(!npcs[num] || get_npc(num)->is_unused());
  900. ~~~~~~~~~~~~~~~~~~~~~~~^~
  901. In file included from monsters.h:24,
  902. from gamewin.cc:47:
  903. actors.h: In member function 'int Game_window::get_unused_npc()':
  904. actors.h:570:10: warning: potential null pointer dereference [-Wnull-dereferenc]
  905. unused = tf;
  906. ~~~~~~~^~~~
  907. actors.h:570:10: warning: potential null pointer dereference [-Wnull-dereferenc]
RAW Paste Data