=> Bootstrap dependency digest>=20010302: found digest-20180917 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for wormz-1.0b5nb2 clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth= -c Runner/Runner.cc -o NetBSD/Runner.o clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth= -o NetBSD/Wormz -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/pkg/lib/ -lX11 NetBSD/Runner.o clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth= -c Common/Utils.cc -o NetBSD/Utils.o In file included from Common/Utils.cc:1: In file included from ./include/Utils.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ 4 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth= -c Server/GameServer.cc -o NetBSD/GameServer.o In file included from Server/GameServer.cc:1: In file included from Server/GameServer.hh:4: In file included from ./Network/NetMessage.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Server/GameServer.cc:1: In file included from Server/GameServer.hh:4: ./Network/NetMessage.hh:177:62: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ./Network/NetMessage.hh:177:63: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ^~~~~~ ./Network/NetMessage.hh:181:30: warning: implicit conversion changes signedness: 'StdInteger' (aka 'int') to 'unsigned long' [-Wsign-conversion] int GetCount() { return (size-sizeof(NetMessage))/sizeof(nmStepItem); }; ^~~~~ ./Network/NetMessage.hh:186:28: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Network/NetMessage.hh:186:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ^~~~~~~~~ Server/GameServer.cc:266:17: warning: comparison of two values with different enumeration types ('GSPlayerState_t' and 'MsgType_t2') [-Wenum-compare] if (type2 == mtStartGame) { // EEK! this maybe shouldn't be there ~~~~~ ^ ~~~~~~~~~~~ 10 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth= -c Server/Server.cc -o NetBSD/Server.o In file included from Server/Server.cc:1: In file included from Server/GameServer.hh:4: In file included from ./Network/NetMessage.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Server/Server.cc:1: In file included from Server/GameServer.hh:4: ./Network/NetMessage.hh:177:62: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ./Network/NetMessage.hh:177:63: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ^~~~~~ ./Network/NetMessage.hh:181:30: warning: implicit conversion changes signedness: 'StdInteger' (aka 'int') to 'unsigned long' [-Wsign-conversion] int GetCount() { return (size-sizeof(NetMessage))/sizeof(nmStepItem); }; ^~~~~ ./Network/NetMessage.hh:186:28: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Network/NetMessage.hh:186:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ^~~~~~~~~ Server/Server.cc:33:12: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] port = strtol(port_s, &endptr, 10); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 10 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth= -c Network/Connection.cc -o NetBSD/Connection.o In file included from Network/Connection.cc:1: In file included from Network/Connection.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ Network/Connection.cc:18:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] slen = strlen(_name); ~ ^~~~~~~~~~~~~ 5 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth= -c Network/UDPConnection.cc -o NetBSD/UDPConnection.o In file included from Network/UDPConnection.cc:1: In file included from Network/UDPConnection.hh:4: In file included from Network/Connection.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ Network/UDPConnection.cc:138:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] ret = sendto(socket_fd, buffer, bufsize, 0, (sockaddr *) &addr, sizeof (addr)); ~~~~~~ ^~~~~~~ Network/UDPConnection.cc:138:9: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] ret = sendto(socket_fd, buffer, bufsize, 0, (sockaddr *) &addr, sizeof (addr)); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Network/UDPConnection.cc:172:42: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] int ret = recvfrom (socket_fd, buffer, maxsize, 0, (sockaddr *) &in_addr, &addr_len); ~~~~~~~~ ^~~~~~~ Network/UDPConnection.cc:172:13: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int ret = recvfrom (socket_fd, buffer, maxsize, 0, (sockaddr *) &in_addr, &addr_len); ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth= -c Network/NetConnector.cc -o NetBSD/NetConnector.o In file included from Network/NetConnector.cc:1: In file included from Network/NetConnector.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Network/NetConnector.cc:1: In file included from Network/NetConnector.hh:6: Network/NetMessage.hh:177:62: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ Network/NetMessage.hh:177:63: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ^~~~~~ Network/NetMessage.hh:181:30: warning: implicit conversion changes signedness: 'StdInteger' (aka 'int') to 'unsigned long' [-Wsign-conversion] int GetCount() { return (size-sizeof(NetMessage))/sizeof(nmStepItem); }; ^~~~~ Network/NetMessage.hh:186:28: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Network/NetMessage.hh:186:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ^~~~~~~~~ Network/NetConnector.cc:32:3: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete out_buffer; ^ [] Network/NetConnector.cc:18:14: note: allocated with 'new[]' here out_buffer(new char[buffersize]), in_buffer(new char[buffersize]), ^ Network/NetConnector.cc:33:3: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete in_buffer; ^ [] Network/NetConnector.cc:18:47: note: allocated with 'new[]' here out_buffer(new char[buffersize]), in_buffer(new char[buffersize]), ^ Network/NetConnector.cc:34:3: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete save_out_buffer1; ^ [] Network/NetConnector.cc:19:20: note: allocated with 'new[]' here save_out_buffer1(new char[buffersize]), ^ Network/NetConnector.cc:35:3: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete cached_in_buffer; ^ [] Network/NetConnector.cc:20:20: note: allocated with 'new[]' here cached_in_buffer(new char[buffersize]), ^ Network/NetConnector.cc:57:36: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memcpy(out_buffer + bufpos, msg, size); ~~~~~~ ^~~~ Network/NetConnector.cc:219:26: warning: implicit conversion changes signedness: 'unsigned long' to 'int' [-Wsign-conversion] int savesize = ph->Size-sizeof(PacketHeader); ~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ Network/NetConnector.cc:219:22: warning: implicit conversion changes signedness: 'StdInteger' (aka 'int') to 'unsigned long' [-Wsign-conversion] int savesize = ph->Size-sizeof(PacketHeader); ~~~~^~~~~ Network/NetConnector.cc:251:13: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] status = "Server refused connection - incompatible versions"; ^ Network/NetConnector.cc:256:13: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] status = "Connected to server"; ^ Network/NetConnector.cc:264:13: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] status = "Bad network connection to server"; ^ Network/NetConnector.cc:280:13: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] status = "Server refused connection (too many clients)!"; ^ Network/NetConnector.cc:286:11: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] status = "Bad response from server"; ^ Network/NetConnector.cc:291:12: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] status = "Initial connection to server timed out"; ^ Network/NetConnector.cc:306:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] status = "Disconnected from server"; ^ 23 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth= -c Network/NetCTree.cc -o NetBSD/NetCTree.o In file included from Network/NetCTree.cc:1: In file included from Network/NetCTree.hh:4: In file included from Network/NetMessage.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Network/NetCTree.cc:1: In file included from Network/NetCTree.hh:4: Network/NetMessage.hh:177:62: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ Network/NetMessage.hh:177:63: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ^~~~~~ Network/NetMessage.hh:181:30: warning: implicit conversion changes signedness: 'StdInteger' (aka 'int') to 'unsigned long' [-Wsign-conversion] int GetCount() { return (size-sizeof(NetMessage))/sizeof(nmStepItem); }; ^~~~~ Network/NetMessage.hh:186:28: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Network/NetMessage.hh:186:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ^~~~~~~~~ Network/NetCTree.cc:74:22: warning: cast from 'char *' to 'NetMessage *' increases required alignment from 1 to 4 [-Wcast-align] NetMessage * n = (NetMessage *) p; ^~~~~~~~~~~~~~~~ Network/NetCTree.cc:79:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memcpy(b, n, size); ~~~~~~ ^~~~ Network/NetCTree.cc:80:29: warning: cast from 'char *' to 'NetMessage *' increases required alignment from 1 to 4 [-Wcast-align] items[n->type]->AddNode((NetMessage *) b); ^~~~~~~~~~~~~~~~ 12 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth= -o NetBSD/Wormz-server -lm NetBSD/Utils.o NetBSD/GameServer.o NetBSD/Server.o NetBSD/Connection.o NetBSD/UDPConnection.o NetBSD/NetCTree.o NetBSD/NetConnector.o for i in 8 16 24 ; do Depth=$i /usr/pkg/bin/gmake Client-target ; done gmake[1]: Entering directory '/data/scratch/games/wormz/work/Wormz' clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c Xlib/XlibPaintInterface.cc -o NetBSD/XlibPaintInterface8.o In file included from Xlib/XlibPaintInterface.cc:1: In file included from Xlib/XlibPaintInterface.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibPaintInterface.cc:1: In file included from Xlib/XlibPaintInterface.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibPaintInterface.cc:1: In file included from Xlib/XlibPaintInterface.hh:5: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ 15 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c Xlib/XlibEvent.cc -o NetBSD/XlibEvent8.o In file included from Xlib/XlibEvent.cc:1: In file included from Xlib/XlibEvent.hh:4: In file included from ./include/Event.hh:4: In file included from ./include/Utils.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibEvent.cc:5: In file included from Xlib/XlibImage.hh:4: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibEvent.cc:5: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibEvent.cc:30:29: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktNum + '0'; ~ ~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:36:35: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktKeypadNum + '0'; ~ ~~~~~~~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:42:31: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktAlpha + 'A'; ~ ~~~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:48:31: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktAlpha + 'a'; ~ ~~~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:109:22: warning: implicit conversion changes signedness: 'unsigned int' to 'KeypressType' (aka 'int') [-Wsign-conversion] t = ktNoSymbolStart + xe.xkey.keycode; ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ Xlib/XlibEvent.cc:27:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_0, XK_9)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:28:15: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktNum + (k-XK_0); ~ ~~~~~~^~~~~~~~~~ Xlib/XlibEvent.cc:33:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_KP_0, XK_KP_9)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:34:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktKeypadNum + (k-XK_KP_0); ~ ~~~~~~~~~~~~^~~~~~~~~~~~~ Xlib/XlibEvent.cc:39:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_A, XK_Z)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:40:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktAlpha + (k-XK_A); ~ ~~~~~~~~^~~~~~~~~~ Xlib/XlibEvent.cc:45:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_a, XK_z)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:46:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktAlpha + (k-XK_a); ~ ~~~~~~~~^~~~~~~~~~ Xlib/XlibEvent.cc:51:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_F1, XK_F35)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:52:32: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktFxxStart + (k-XK_F1) + 1; ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~ Xlib/XlibEvent.cc:172:28: warning: implicit conversion changes signedness: 'unsigned int' to 'KeypressType' (aka 'int') [-Wsign-conversion] e.key = xe.xbutton.button + ktMouseButtonStart; ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ 31 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c Xlib/XlibImage.cc -o NetBSD/XlibImage8.o In file included from Xlib/XlibImage.cc:1: In file included from Xlib/XlibImage.hh:4: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibImage.cc:1: In file included from Xlib/XlibImage.hh:7: In file included from ./include/Utils.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibImage.cc:1: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.cc:94:15: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] c.pixel = i; ~ ^ Xlib/XlibImage.cc:95:27: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] c.red = pixel.RPixel()*256; // RPixel returns 0-255, XColor.red is 0-65535 ~ ~~~~~~~~~~~~~~^~~~ Xlib/XlibImage.cc:96:29: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] c.green = pixel.GPixel()*256; ~ ~~~~~~~~~~~~~~^~~~ Xlib/XlibImage.cc:97:28: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] c.blue = pixel.BPixel()*256; ~ ~~~~~~~~~~~~~~^~~~ Xlib/XlibImage.cc:214:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] *((char *) 0) = 0; ^~~~~~~~~~~~~ Xlib/XlibImage.cc:214:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' 20 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c Xlib/XlibFontCreator.cc -o NetBSD/XlibFontCreator8.o In file included from Xlib/XlibFontCreator.cc:1: In file included from Xlib/XlibFontCreator.hh:4: In file included from Xlib/XlibImage.hh:4: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibFontCreator.cc:1: In file included from Xlib/XlibFontCreator.hh:4: In file included from Xlib/XlibImage.hh:7: In file included from ./include/Utils.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibFontCreator.cc:1: In file included from Xlib/XlibFontCreator.hh:4: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibFontCreator.cc:42:16: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] fngc, 0, 0, W, H); ^ Xlib/XlibFontCreator.cc:42:19: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] fngc, 0, 0, W, H); ^ Xlib/XlibFontCreator.cc:44:47: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] XSetForeground (pixmap->GetDisplay(), fngc, c); ~~~~~~~~~~~~~~ ^ Xlib/XlibFontCreator.cc:55:22: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] memcpy(dst, src, sized*sizeof(Pixel_t)); ^~~~~~ Xlib/XlibFontCreator.cc:34:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'const int' [-Wshorten-64-to-32] const int slen = strlen(text); ~~~~ ^~~~~~~~~~~~ Xlib/XlibFontCreator.cc:46:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] fngc, 0, fnstr->ascent, text, strlen(text)); ^~~~~~~~~~~~ 21 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c XVision/View.cc -o NetBSD/View8.o In file included from XVision/View.cc:1: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/View.cc:1: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 7 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c XVision/Menu.cc -o NetBSD/Menu8.o In file included from XVision/Menu.cc:1: In file included from XVision/Menu.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/Menu.cc:1: In file included from XVision/Menu.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 7 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c XVision/XVisionGlobal.cc -o NetBSD/XVisionGlobal8.o In file included from XVision/XVisionGlobal.cc:3: In file included from ./PaintInterface/TargaPicture.hh:4: In file included from ./include/Picture.hh:4: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 3 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c XVision/Application.cc -o NetBSD/Application8.o In file included from XVision/Application.cc:1: In file included from XVision/Application.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/Application.cc:1: In file included from XVision/Application.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 7 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c XVision/Group.cc -o NetBSD/Group8.o In file included from XVision/Group.cc:1: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/Group.cc:1: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 7 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c XVision/SimpleViews.cc -o NetBSD/SimpleViews8.o In file included from XVision/SimpleViews.cc:1: In file included from XVision/SimpleViews.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/SimpleViews.cc:1: In file included from XVision/SimpleViews.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ XVision/SimpleViews.cc:252:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int slen = strlen(text); ~~~~ ^~~~~~~~~~~~ XVision/SimpleViews.cc:265:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int slen = strlen(text); ~~~~ ^~~~~~~~~~~~ 9 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c Game/Players.cc -o NetBSD/Players8.o In file included from Game/Players.cc:2: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Players.cc:2: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Players.cc:2: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ In file included from Game/Players.cc:5: ./Network/NetMessage.hh:177:62: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ./Network/NetMessage.hh:177:63: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ^~~~~~ ./Network/NetMessage.hh:181:30: warning: implicit conversion changes signedness: 'StdInteger' (aka 'int') to 'unsigned long' [-Wsign-conversion] int GetCount() { return (size-sizeof(NetMessage))/sizeof(nmStepItem); }; ^~~~~ ./Network/NetMessage.hh:186:28: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Network/NetMessage.hh:186:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ^~~~~~~~~ Game/Players.cc:41:3: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete worms; ^ [] Game/Players.cc:27:13: note: allocated with 'new[]' here : worms(new Worm *[MAXPlayers]), arena(_arena), scorepanel(_scorepanel), ^ Game/Players.cc:42:3: warning: 'delete' applied to a pointer-to-array type 'CrashBuffer_t *' (aka 'CrashBufferItem_t (*)[480000]') treated as 'delete[]' delete crashBuffer; ^ ~~~~~~~~~~~ [] Game/Players.cc:371:23: warning: implicit conversion changes signedness: 'unsigned long' to 'int' [-Wsign-conversion] int hor_size = WX*BS*sizeof(CrashBufferItem_t); ~~~~~~~~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ Game/Players.cc:371:20: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] int hor_size = WX*BS*sizeof(CrashBufferItem_t); ~~^~~~ Game/Players.cc:372:47: warning: implicit conversion changes signedness: 'unsigned long' to 'int' [-Wsign-conversion] int ver_size2 = BS*sizeof(CrashBufferItem_t)*2; ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ Game/Players.cc:372:19: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] int ver_size2 = BS*sizeof(CrashBufferItem_t)*2; ^~~ Game/Players.cc:373:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(*crashBuffer, c, hor_size); ~~~~~~ ^~~~~~~~ Game/Players.cc:374:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset((*crashBuffer)+EY*WX, c, hor_size); ~~~~~~ ^~~~~~~~ Game/Players.cc:378:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(start, c, ver_size2); ~~~~~~ ^~~~~~~~~ 22 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c Game/Remote.cc -o NetBSD/Remote8.o In file included from Game/Remote.cc:1: In file included from Game/Remote.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Remote.cc:1: In file included from Game/Remote.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Remote.cc:1: In file included from Game/Remote.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ 8 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c Game/Worm.cc -o NetBSD/Worm8.o In file included from Game/Worm.cc:1: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Worm.cc:1: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Worm.cc:1: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ Game/Worm.cc:129:27: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion] cbi->PlayerNumber = number; ~ ^~~~~~ Game/Worm.cc:130:22: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] cbi->Counter = step_counter; ~ ^~~~~~~~~~~~ 10 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c Game/Record.cc -o NetBSD/Record8.o In file included from Game/Record.cc:1: In file included from Game/Record.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Record.cc:1: In file included from Game/Record.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Record.cc:1: In file included from Game/Record.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ 8 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c Game/Human.cc -o NetBSD/Human8.o In file included from Game/Human.cc:1: In file included from Game/Human.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Human.cc:1: In file included from Game/Human.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Human.cc:1: In file included from Game/Human.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ 8 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=8 -c Game/AI.cc -o NetBSD/AI8.o In file included from Game/AI.cc:1: In file included from Game/AI.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/AI.cc:1: In file included from Game/AI.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:154:43: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.data = (r & 0xe0) | ((g >> 3) & 0x1e) | (b >> 6); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:285:10: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] data = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/AI.cc:1: In file included from Game/AI.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ Game/AI.cc:18:12: error: variable length array declaration not allowed at file scope static int linear2crash[Parts][PartPoints]; ^ ~~~~~ 8 warnings and 1 error generated. gmake[1]: *** [Makefile:143: NetBSD/AI8.o] Error 1 gmake[1]: Leaving directory '/data/scratch/games/wormz/work/Wormz' gmake[1]: Entering directory '/data/scratch/games/wormz/work/Wormz' clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c Xlib/XlibPaintInterface.cc -o NetBSD/XlibPaintInterface16.o In file included from Xlib/XlibPaintInterface.cc:1: In file included from Xlib/XlibPaintInterface.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibPaintInterface.cc:1: In file included from Xlib/XlibPaintInterface.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibPaintInterface.cc:1: In file included from Xlib/XlibPaintInterface.hh:5: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ 15 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c Xlib/XlibEvent.cc -o NetBSD/XlibEvent16.o In file included from Xlib/XlibEvent.cc:1: In file included from Xlib/XlibEvent.hh:4: In file included from ./include/Event.hh:4: In file included from ./include/Utils.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibEvent.cc:5: In file included from Xlib/XlibImage.hh:4: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibEvent.cc:5: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibEvent.cc:30:29: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktNum + '0'; ~ ~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:36:35: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktKeypadNum + '0'; ~ ~~~~~~~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:42:31: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktAlpha + 'A'; ~ ~~~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:48:31: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktAlpha + 'a'; ~ ~~~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:109:22: warning: implicit conversion changes signedness: 'unsigned int' to 'KeypressType' (aka 'int') [-Wsign-conversion] t = ktNoSymbolStart + xe.xkey.keycode; ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ Xlib/XlibEvent.cc:27:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_0, XK_9)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:28:15: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktNum + (k-XK_0); ~ ~~~~~~^~~~~~~~~~ Xlib/XlibEvent.cc:33:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_KP_0, XK_KP_9)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:34:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktKeypadNum + (k-XK_KP_0); ~ ~~~~~~~~~~~~^~~~~~~~~~~~~ Xlib/XlibEvent.cc:39:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_A, XK_Z)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:40:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktAlpha + (k-XK_A); ~ ~~~~~~~~^~~~~~~~~~ Xlib/XlibEvent.cc:45:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_a, XK_z)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:46:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktAlpha + (k-XK_a); ~ ~~~~~~~~^~~~~~~~~~ Xlib/XlibEvent.cc:51:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_F1, XK_F35)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:52:32: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktFxxStart + (k-XK_F1) + 1; ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~ Xlib/XlibEvent.cc:172:28: warning: implicit conversion changes signedness: 'unsigned int' to 'KeypressType' (aka 'int') [-Wsign-conversion] e.key = xe.xbutton.button + ktMouseButtonStart; ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ 31 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c Xlib/XlibImage.cc -o NetBSD/XlibImage16.o In file included from Xlib/XlibImage.cc:1: In file included from Xlib/XlibImage.hh:4: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibImage.cc:1: In file included from Xlib/XlibImage.hh:7: In file included from ./include/Utils.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibImage.cc:1: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.cc:214:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] *((char *) 0) = 0; ^~~~~~~~~~~~~ Xlib/XlibImage.cc:214:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' In file included from Xlib/XlibImage.cc:1: Xlib/XlibImage.hh:35:14: warning: private field 'colormap' is not used [-Wunused-private-field] Colormap colormap; ^ 17 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c Xlib/XlibFontCreator.cc -o NetBSD/XlibFontCreator16.o In file included from Xlib/XlibFontCreator.cc:1: In file included from Xlib/XlibFontCreator.hh:4: In file included from Xlib/XlibImage.hh:4: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibFontCreator.cc:1: In file included from Xlib/XlibFontCreator.hh:4: In file included from Xlib/XlibImage.hh:7: In file included from ./include/Utils.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibFontCreator.cc:1: In file included from Xlib/XlibFontCreator.hh:4: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibFontCreator.cc:42:16: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] fngc, 0, 0, W, H); ^ Xlib/XlibFontCreator.cc:42:19: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] fngc, 0, 0, W, H); ^ Xlib/XlibFontCreator.cc:44:47: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] XSetForeground (pixmap->GetDisplay(), fngc, c); ~~~~~~~~~~~~~~ ^ Xlib/XlibFontCreator.cc:55:22: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] memcpy(dst, src, sized*sizeof(Pixel_t)); ^~~~~~ Xlib/XlibFontCreator.cc:34:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'const int' [-Wshorten-64-to-32] const int slen = strlen(text); ~~~~ ^~~~~~~~~~~~ Xlib/XlibFontCreator.cc:46:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] fngc, 0, fnstr->ascent, text, strlen(text)); ^~~~~~~~~~~~ 21 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c XVision/View.cc -o NetBSD/View16.o In file included from XVision/View.cc:1: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/View.cc:1: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 7 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c XVision/Menu.cc -o NetBSD/Menu16.o In file included from XVision/Menu.cc:1: In file included from XVision/Menu.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/Menu.cc:1: In file included from XVision/Menu.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 7 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c XVision/XVisionGlobal.cc -o NetBSD/XVisionGlobal16.o In file included from XVision/XVisionGlobal.cc:3: In file included from ./PaintInterface/TargaPicture.hh:4: In file included from ./include/Picture.hh:4: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 3 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c XVision/Application.cc -o NetBSD/Application16.o In file included from XVision/Application.cc:1: In file included from XVision/Application.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/Application.cc:1: In file included from XVision/Application.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 7 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c XVision/Group.cc -o NetBSD/Group16.o In file included from XVision/Group.cc:1: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/Group.cc:1: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 7 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c XVision/SimpleViews.cc -o NetBSD/SimpleViews16.o In file included from XVision/SimpleViews.cc:1: In file included from XVision/SimpleViews.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/SimpleViews.cc:1: In file included from XVision/SimpleViews.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ XVision/SimpleViews.cc:252:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int slen = strlen(text); ~~~~ ^~~~~~~~~~~~ XVision/SimpleViews.cc:265:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int slen = strlen(text); ~~~~ ^~~~~~~~~~~~ 9 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c Game/Players.cc -o NetBSD/Players16.o In file included from Game/Players.cc:2: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Players.cc:2: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Players.cc:2: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ In file included from Game/Players.cc:5: ./Network/NetMessage.hh:177:62: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ./Network/NetMessage.hh:177:63: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ^~~~~~ ./Network/NetMessage.hh:181:30: warning: implicit conversion changes signedness: 'StdInteger' (aka 'int') to 'unsigned long' [-Wsign-conversion] int GetCount() { return (size-sizeof(NetMessage))/sizeof(nmStepItem); }; ^~~~~ ./Network/NetMessage.hh:186:28: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Network/NetMessage.hh:186:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ^~~~~~~~~ Game/Players.cc:41:3: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete worms; ^ [] Game/Players.cc:27:13: note: allocated with 'new[]' here : worms(new Worm *[MAXPlayers]), arena(_arena), scorepanel(_scorepanel), ^ Game/Players.cc:42:3: warning: 'delete' applied to a pointer-to-array type 'CrashBuffer_t *' (aka 'CrashBufferItem_t (*)[480000]') treated as 'delete[]' delete crashBuffer; ^ ~~~~~~~~~~~ [] Game/Players.cc:371:23: warning: implicit conversion changes signedness: 'unsigned long' to 'int' [-Wsign-conversion] int hor_size = WX*BS*sizeof(CrashBufferItem_t); ~~~~~~~~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ Game/Players.cc:371:20: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] int hor_size = WX*BS*sizeof(CrashBufferItem_t); ~~^~~~ Game/Players.cc:372:47: warning: implicit conversion changes signedness: 'unsigned long' to 'int' [-Wsign-conversion] int ver_size2 = BS*sizeof(CrashBufferItem_t)*2; ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ Game/Players.cc:372:19: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] int ver_size2 = BS*sizeof(CrashBufferItem_t)*2; ^~~ Game/Players.cc:373:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(*crashBuffer, c, hor_size); ~~~~~~ ^~~~~~~~ Game/Players.cc:374:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset((*crashBuffer)+EY*WX, c, hor_size); ~~~~~~ ^~~~~~~~ Game/Players.cc:378:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(start, c, ver_size2); ~~~~~~ ^~~~~~~~~ 22 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c Game/Remote.cc -o NetBSD/Remote16.o In file included from Game/Remote.cc:1: In file included from Game/Remote.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Remote.cc:1: In file included from Game/Remote.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Remote.cc:1: In file included from Game/Remote.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ 8 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c Game/Worm.cc -o NetBSD/Worm16.o In file included from Game/Worm.cc:1: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Worm.cc:1: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Worm.cc:1: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ Game/Worm.cc:129:27: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion] cbi->PlayerNumber = number; ~ ^~~~~~ Game/Worm.cc:130:22: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] cbi->Counter = step_counter; ~ ^~~~~~~~~~~~ 10 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c Game/Record.cc -o NetBSD/Record16.o In file included from Game/Record.cc:1: In file included from Game/Record.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Record.cc:1: In file included from Game/Record.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Record.cc:1: In file included from Game/Record.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ 8 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c Game/Human.cc -o NetBSD/Human16.o In file included from Game/Human.cc:1: In file included from Game/Human.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Human.cc:1: In file included from Game/Human.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Human.cc:1: In file included from Game/Human.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ 8 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=16 -c Game/AI.cc -o NetBSD/AI16.o In file included from Game/AI.cc:1: In file included from Game/AI.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/AI.cc:1: In file included from Game/AI.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:151:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] q.data16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ./include/GraphConfig.hh:282:12: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] data16 = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 2 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/AI.cc:1: In file included from Game/AI.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ Game/AI.cc:18:12: error: variable length array declaration not allowed at file scope static int linear2crash[Parts][PartPoints]; ^ ~~~~~ 8 warnings and 1 error generated. gmake[1]: *** [Makefile:143: NetBSD/AI16.o] Error 1 gmake[1]: Leaving directory '/data/scratch/games/wormz/work/Wormz' gmake[1]: Entering directory '/data/scratch/games/wormz/work/Wormz' clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c Xlib/XlibPaintInterface.cc -o NetBSD/XlibPaintInterface24.o In file included from Xlib/XlibPaintInterface.cc:1: In file included from Xlib/XlibPaintInterface.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibPaintInterface.cc:1: In file included from Xlib/XlibPaintInterface.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibPaintInterface.cc:1: In file included from Xlib/XlibPaintInterface.hh:5: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ 19 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c Xlib/XlibEvent.cc -o NetBSD/XlibEvent24.o In file included from Xlib/XlibEvent.cc:1: In file included from Xlib/XlibEvent.hh:4: In file included from ./include/Event.hh:4: In file included from ./include/Utils.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibEvent.cc:5: In file included from Xlib/XlibImage.hh:4: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibEvent.cc:5: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibEvent.cc:30:29: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktNum + '0'; ~ ~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:36:35: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktKeypadNum + '0'; ~ ~~~~~~~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:42:31: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktAlpha + 'A'; ~ ~~~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:48:31: warning: implicit conversion loses integer precision: 'int' to 'KeyChar' (aka 'char') [-Wconversion] e.keychar = t - ktAlpha + 'a'; ~ ~~~~~~~~~~~~^~~~~ Xlib/XlibEvent.cc:109:22: warning: implicit conversion changes signedness: 'unsigned int' to 'KeypressType' (aka 'int') [-Wsign-conversion] t = ktNoSymbolStart + xe.xkey.keycode; ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ Xlib/XlibEvent.cc:27:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_0, XK_9)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:28:15: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktNum + (k-XK_0); ~ ~~~~~~^~~~~~~~~~ Xlib/XlibEvent.cc:33:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_KP_0, XK_KP_9)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:34:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktKeypadNum + (k-XK_KP_0); ~ ~~~~~~~~~~~~^~~~~~~~~~~~~ Xlib/XlibEvent.cc:39:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_A, XK_Z)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:40:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktAlpha + (k-XK_A); ~ ~~~~~~~~^~~~~~~~~~ Xlib/XlibEvent.cc:45:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_a, XK_z)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:46:17: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktAlpha + (k-XK_a); ~ ~~~~~~~~^~~~~~~~~~ Xlib/XlibEvent.cc:51:15: warning: implicit conversion loses integer precision: 'KeySym' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] if (between(k, XK_F1, XK_F35)) { ~~~~~~~ ^ Xlib/XlibEvent.cc:52:32: warning: implicit conversion loses integer precision: 'unsigned long' to 'KeypressType' (aka 'int') [-Wshorten-64-to-32] t = ktFxxStart + (k-XK_F1) + 1; ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~ Xlib/XlibEvent.cc:172:28: warning: implicit conversion changes signedness: 'unsigned int' to 'KeypressType' (aka 'int') [-Wsign-conversion] e.key = xe.xbutton.button + ktMouseButtonStart; ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ 35 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c Xlib/XlibImage.cc -o NetBSD/XlibImage24.o In file included from Xlib/XlibImage.cc:1: In file included from Xlib/XlibImage.hh:4: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibImage.cc:1: In file included from Xlib/XlibImage.hh:7: In file included from ./include/Utils.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibImage.cc:1: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.cc:214:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] *((char *) 0) = 0; ^~~~~~~~~~~~~ Xlib/XlibImage.cc:214:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' In file included from Xlib/XlibImage.cc:1: Xlib/XlibImage.hh:35:14: warning: private field 'colormap' is not used [-Wunused-private-field] Colormap colormap; ^ 21 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c Xlib/XlibFontCreator.cc -o NetBSD/XlibFontCreator24.o In file included from Xlib/XlibFontCreator.cc:1: In file included from Xlib/XlibFontCreator.hh:4: In file included from Xlib/XlibImage.hh:4: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Xlib/XlibFontCreator.cc:1: In file included from Xlib/XlibFontCreator.hh:4: In file included from Xlib/XlibImage.hh:7: In file included from ./include/Utils.hh:5: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Xlib/XlibFontCreator.cc:1: In file included from Xlib/XlibFontCreator.hh:4: Xlib/XlibImage.hh:93:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:93:56: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XShmPutImage(display, d, gc, image, X, Y, X, Y, W, H, FALSE); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:95:50: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:95:53: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XPutImage(display, d, gc, image, X, Y, X, Y, W, H); ~~~~~~~~~ ^ Xlib/XlibImage.hh:96:34: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:96:37: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XClearArea(display, d, X, Y, W, H, FALSE); ~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:36: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibImage.hh:106:39: warning: implicit conversion changes signedness: 'const int' to 'unsigned int' [-Wsign-conversion] XGetSubImage(display, d, X, Y, W, H, (unsigned long) -1, ZPixmap, image, X, Y); ~~~~~~~~~~~~ ^ Xlib/XlibFontCreator.cc:42:16: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] fngc, 0, 0, W, H); ^ Xlib/XlibFontCreator.cc:42:19: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] fngc, 0, 0, W, H); ^ Xlib/XlibFontCreator.cc:44:47: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] XSetForeground (pixmap->GetDisplay(), fngc, c); ~~~~~~~~~~~~~~ ^ Xlib/XlibFontCreator.cc:55:22: warning: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Wsign-conversion] memcpy(dst, src, sized*sizeof(Pixel_t)); ^~~~~~ Xlib/XlibFontCreator.cc:34:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'const int' [-Wshorten-64-to-32] const int slen = strlen(text); ~~~~ ^~~~~~~~~~~~ Xlib/XlibFontCreator.cc:46:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] fngc, 0, fnstr->ascent, text, strlen(text)); ^~~~~~~~~~~~ 25 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c XVision/View.cc -o NetBSD/View24.o In file included from XVision/View.cc:1: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/View.cc:1: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 11 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c XVision/Menu.cc -o NetBSD/Menu24.o In file included from XVision/Menu.cc:1: In file included from XVision/Menu.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/Menu.cc:1: In file included from XVision/Menu.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 11 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c XVision/XVisionGlobal.cc -o NetBSD/XVisionGlobal24.o In file included from XVision/XVisionGlobal.cc:3: In file included from ./PaintInterface/TargaPicture.hh:4: In file included from ./include/Picture.hh:4: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 7 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c XVision/Application.cc -o NetBSD/Application24.o In file included from XVision/Application.cc:1: In file included from XVision/Application.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/Application.cc:1: In file included from XVision/Application.hh:4: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 11 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c XVision/Group.cc -o NetBSD/Group24.o In file included from XVision/Group.cc:1: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/Group.cc:1: In file included from XVision/Group.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ 11 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c XVision/SimpleViews.cc -o NetBSD/SimpleViews24.o In file included from XVision/SimpleViews.cc:1: In file included from XVision/SimpleViews.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from XVision/SimpleViews.cc:1: In file included from XVision/SimpleViews.hh:4: In file included from XVision/View.hh:4: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ XVision/SimpleViews.cc:252:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int slen = strlen(text); ~~~~ ^~~~~~~~~~~~ XVision/SimpleViews.cc:265:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int slen = strlen(text); ~~~~ ^~~~~~~~~~~~ 13 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c Game/Players.cc -o NetBSD/Players24.o In file included from Game/Players.cc:2: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Players.cc:2: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Players.cc:2: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ In file included from Game/Players.cc:5: ./Network/NetMessage.hh:177:62: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ./Network/NetMessage.hh:177:63: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] nmStep(int Count) : NetMessage(mtStep, sizeof(NetMessage)+Count*sizeof(nmStepItem)) { }; ^~~~~~ ./Network/NetMessage.hh:181:30: warning: implicit conversion changes signedness: 'StdInteger' (aka 'int') to 'unsigned long' [-Wsign-conversion] int GetCount() { return (size-sizeof(NetMessage))/sizeof(nmStepItem); }; ^~~~~ ./Network/NetMessage.hh:186:28: warning: implicit conversion changes signedness: 'unsigned long' to 'StdInteger' (aka 'int') [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Network/NetMessage.hh:186:29: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] size = sizeof(NetMessage)+newCount*sizeof(nmStepItem); ^~~~~~~~~ Game/Players.cc:41:3: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete worms; ^ [] Game/Players.cc:27:13: note: allocated with 'new[]' here : worms(new Worm *[MAXPlayers]), arena(_arena), scorepanel(_scorepanel), ^ Game/Players.cc:42:3: warning: 'delete' applied to a pointer-to-array type 'CrashBuffer_t *' (aka 'CrashBufferItem_t (*)[480000]') treated as 'delete[]' delete crashBuffer; ^ ~~~~~~~~~~~ [] Game/Players.cc:371:23: warning: implicit conversion changes signedness: 'unsigned long' to 'int' [-Wsign-conversion] int hor_size = WX*BS*sizeof(CrashBufferItem_t); ~~~~~~~~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ Game/Players.cc:371:20: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] int hor_size = WX*BS*sizeof(CrashBufferItem_t); ~~^~~~ Game/Players.cc:372:47: warning: implicit conversion changes signedness: 'unsigned long' to 'int' [-Wsign-conversion] int ver_size2 = BS*sizeof(CrashBufferItem_t)*2; ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ Game/Players.cc:372:19: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] int ver_size2 = BS*sizeof(CrashBufferItem_t)*2; ^~~ Game/Players.cc:373:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(*crashBuffer, c, hor_size); ~~~~~~ ^~~~~~~~ Game/Players.cc:374:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset((*crashBuffer)+EY*WX, c, hor_size); ~~~~~~ ^~~~~~~~ Game/Players.cc:378:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(start, c, ver_size2); ~~~~~~ ^~~~~~~~~ 26 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c Game/Remote.cc -o NetBSD/Remote24.o In file included from Game/Remote.cc:1: In file included from Game/Remote.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Remote.cc:1: In file included from Game/Remote.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Remote.cc:1: In file included from Game/Remote.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ 12 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c Game/Worm.cc -o NetBSD/Worm24.o In file included from Game/Worm.cc:1: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Worm.cc:1: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Worm.cc:1: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ Game/Worm.cc:129:27: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion] cbi->PlayerNumber = number; ~ ^~~~~~ Game/Worm.cc:130:22: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wconversion] cbi->Counter = step_counter; ~ ^~~~~~~~~~~~ 14 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c Game/Record.cc -o NetBSD/Record24.o In file included from Game/Record.cc:1: In file included from Game/Record.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Record.cc:1: In file included from Game/Record.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Record.cc:1: In file included from Game/Record.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ 12 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c Game/Human.cc -o NetBSD/Human24.o In file included from Game/Human.cc:1: In file included from Game/Human.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/Human.cc:1: In file included from Game/Human.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/Human.cc:1: In file included from Game/Human.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ 12 warnings generated. clang++ -pipe -I./include -I. -I/usr/pkg/include -O2 -Wall -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -DNetBSD -DARCHDIR=\"NetBSD/\" -DColorDepth=24 -c Game/AI.cc -o NetBSD/AI24.o In file included from Game/AI.cc:1: In file included from Game/AI.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:4: ./include/Compat.hh:23:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] memset(data, 0, size); ~~~~~~ ^~~~ ./include/Compat.hh:35:8: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:34:8: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff0000) >> 8) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/Compat.hh:35:12: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] + ((old & 0xff000000) >> 24); ^~~ ~ In file included from Game/AI.cc:1: In file included from Game/AI.hh:4: In file included from Game/Worm.hh:5: In file included from ./include/FrameBuffer.hh:4: In file included from ./include/FrontBuffer.hh:5: ./include/GraphConfig.hh:146:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.r = r; ~ ^ ./include/GraphConfig.hh:147:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.g = g; ~ ^ ./include/GraphConfig.hh:148:9: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] q.b = b; ~ ^ ./include/GraphConfig.hh:277:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] r = (color >> 16); ~ ~~~~~~^~~~~ ./include/GraphConfig.hh:278:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] g = (color >> 8); ~ ~~~~~~^~~~ ./include/GraphConfig.hh:279:7: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion] b = color; ~ ^~~~~ ./include/GraphConfig.hh:291:12: warning: cast from 'const Pixel_t *' to 'const int *' increases required alignment from 1 to 4 [-Wcast-align] return *((const int *) this); ^~~~~~~~~~~~~~~~~~ In file included from Game/AI.cc:1: In file included from Game/AI.hh:4: Game/Worm.hh:81:41: warning: implicit conversion changes signedness: 'int' to 'const char' [-Wsign-conversion] const char WallBorderCrashB_playernum = 0xff; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ Game/AI.cc:18:12: error: variable length array declaration not allowed at file scope static int linear2crash[Parts][PartPoints]; ^ ~~~~~ 12 warnings and 1 error generated. gmake[1]: *** [Makefile:143: NetBSD/AI24.o] Error 1 gmake[1]: Leaving directory '/data/scratch/games/wormz/work/Wormz' gmake: *** [Makefile:184: Client-depth] Error 2 *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc/games/wormz *** Error code 1 Stop. make: stopped in /data/pkgsrc/games/wormz