45a959b
diff -up ./crypto/CryptoAuth.c.warnings ./crypto/CryptoAuth.c
02039d0
--- ./crypto/CryptoAuth.c.warnings	2016-10-11 17:39:44.000000000 -0400
02039d0
+++ ./crypto/CryptoAuth.c	2017-02-18 14:33:13.145294735 -0500
45a959b
@@ -77,6 +77,8 @@ static inline void getSharedSecret(uint8
45a959b
                                    uint8_t passwordHash[32],
45a959b
                                    struct Log* logger)
45a959b
 {
45a959b
+#pragma GCC diagnostic push
45a959b
+#pragma GCC diagnostic ignored "-Wunused-result"
45a959b
     if (passwordHash == NULL) {
45a959b
         crypto_box_curve25519xsalsa20poly1305_beforenm(outputSecret, herPublicKey, myPrivateKey);
45a959b
     } else {
45a959b
@@ -92,6 +94,7 @@ static inline void getSharedSecret(uint8
45a959b
         Bits_memcpy(buff.components.passwd, passwordHash, 32);
45a959b
         crypto_hash_sha256(outputSecret, buff.bytes, 64);
45a959b
     }
45a959b
+#pragma GCC diagnostic pop
45a959b
     if (Defined(Log_KEYS)) {
45a959b
         uint8_t myPublicKeyHex[65];
45a959b
         printHexPubKey(myPublicKeyHex, myPrivateKey);
2f8dfd1
diff -up ./dht/CJDHTConstants.h.warnings ./dht/CJDHTConstants.h
02039d0
--- ./dht/CJDHTConstants.h.warnings	2016-10-11 17:39:44.000000000 -0400
02039d0
+++ ./dht/CJDHTConstants.h	2017-02-18 14:33:13.145294735 -0500
2f8dfd1
@@ -17,7 +17,9 @@
2f8dfd1
 
2f8dfd1
 #include "benc/String.h"
2f8dfd1
 #include "util/version/Version.h"
2f8dfd1
-
2f8dfd1
+#pragma GCC diagnostic push
2f8dfd1
+#pragma GCC diagnostic ignored "-Wpragmas"
2f8dfd1
+#pragma GCC diagnostic ignored "-Wunused-const-variable"
2f8dfd1
 // Signifying that this message is a query and defining the query type.
2f8dfd1
 static String* const CJDHTConstants_QUERY = String_CONST_SO("q");
2f8dfd1
 
2f8dfd1
@@ -61,5 +63,5 @@ static String* const CJDHTConstants_ENC_
2f8dfd1
 // Encoding scheme and index for the closest peer along the path.
2f8dfd1
 static String* const CJDHTConstants_PEER_ENC_SCHEME = String_CONST_SO("pes");
2f8dfd1
 static String* const CJDHTConstants_PEER_ENC_INDEX = String_CONST_SO("pei");
2f8dfd1
-
2f8dfd1
+#pragma GCC diagnostic pop
2f8dfd1
 #endif
02039d0
diff -up ./dht/dhtcore/NodeStore.c.warnings ./dht/dhtcore/NodeStore.c
02039d0
--- ./dht/dhtcore/NodeStore.c.warnings	2017-02-18 14:33:47.091697196 -0500
02039d0
+++ ./dht/dhtcore/NodeStore.c	2017-02-18 14:34:03.824895582 -0500
02039d0
@@ -1752,11 +1752,15 @@ struct NodeList* NodeStore_getPeers(uint
02039d0
             if ((out->nodes[j]->address.path - label) > (p - label)) { continue; }
02039d0
             break;
02039d0
         }
02039d0
+#pragma GCC diagnostic push
02039d0
+#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
02039d0
         switch (j) {
02039d0
             default: Bits_memmove(out->nodes, &out->nodes[1], (j - 1) * sizeof(char*));
02039d0
+                // fallthrough
02039d0
             case 1: out->nodes[j - 1] = next->child;
02039d0
             case 0:;
02039d0
         }
02039d0
+#pragma GCC diagnostic pop
02039d0
     }
02039d0
 
02039d0
     out->size = 0;
2f8dfd1
diff -up ./node_build/dependencies/libuv/test/test-getsockname.c.warnings ./node_build/dependencies/libuv/test/test-getsockname.c
02039d0
--- ./node_build/dependencies/libuv/test/test-getsockname.c.warnings	2016-10-11 17:39:44.000000000 -0400
02039d0
+++ ./node_build/dependencies/libuv/test/test-getsockname.c	2017-02-18 14:33:13.145294735 -0500
2f8dfd1
@@ -18,7 +18,7 @@
2f8dfd1
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2f8dfd1
  * IN THE SOFTWARE.
2f8dfd1
  */
2f8dfd1
-
2f8dfd1
+#pragma GCC diagnostic ignored "-Wstrict-aliasing"
2f8dfd1
 #include "uv.h"
2f8dfd1
 #include "task.h"
2f8dfd1
 
2f8dfd1
diff -up ./util/platform/netdev/NetPlatform_linux.c.warnings ./util/platform/netdev/NetPlatform_linux.c
02039d0
--- ./util/platform/netdev/NetPlatform_linux.c.warnings	2016-10-11 17:39:44.000000000 -0400
02039d0
+++ ./util/platform/netdev/NetPlatform_linux.c	2017-02-18 14:33:13.145294735 -0500
02039d0
@@ -165,7 +165,7 @@ void NetPlatform_addAddress(const char*
2f8dfd1
             Except_throw(eh, "ioctl(SIOCSIFADDR) failed: [%s]", strerror(err));
2f8dfd1
         }
2f8dfd1
 
cef3e37
-        uint32_t x = (uint32_t)~0 << (32 - prefixLen);
2f8dfd1
+        uint32_t x = ~0U << (32 - prefixLen);
2f8dfd1
         x = Endian_hostToBigEndian32(x);
2f8dfd1
         memcpy(&sin.sin_addr, &x, 4);
2f8dfd1
         memcpy(&ifRequest.ifr_addr, &sin, sizeof(struct sockaddr_in));
2f8dfd1
diff -up ./util/platform/Sockaddr.c.warnings ./util/platform/Sockaddr.c
02039d0
--- ./util/platform/Sockaddr.c.warnings	2016-10-11 17:39:44.000000000 -0400
02039d0
+++ ./util/platform/Sockaddr.c	2017-02-18 14:33:13.145294735 -0500
2f8dfd1
@@ -12,6 +12,7 @@
2f8dfd1
  * You should have received a copy of the GNU General Public License
2f8dfd1
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
2f8dfd1
  */
2f8dfd1
+#pragma GCC diagnostic ignored "-Wstrict-aliasing"
2f8dfd1
 #include "util/events/libuv/UvWrapper.h"
2f8dfd1
 #include "benc/String.h"
2f8dfd1
 #include "memory/Allocator.h"