]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Include dependencies in the makefile
authorDale Weiler <weilercdale@gmail.com>
Wed, 14 Jan 2015 01:29:46 +0000 (20:29 -0500)
committerDale Weiler <weilercdale@gmail.com>
Wed, 14 Jan 2015 01:29:46 +0000 (20:29 -0500)
Makefile
util.c

index 268e2b4103e7f0b1479133ecf5b099295bd04cf5..855dd4b54dbe0af02a07e1746de7fe6b8b966bae 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,3 +32,5 @@ clean:
        rm -f *.d
        rm -f $(COBJS) $(CDEPS) $(CBIN)
        rm -f $(TOBJS) $(TDEPS) $(TBIN)
+
+-include *.d
diff --git a/util.c b/util.c
index 4adcb4a9d13132d381c862b59be52ca668263176..c2ab21ac7ad87f4a910f78a27bdc6ebfe9e1e229 100644 (file)
--- a/util.c
+++ b/util.c
@@ -519,7 +519,7 @@ static const uint16_t util_crc16_table[8][256] = {{
 
 /* Non - Reflected */
 uint16_t util_crc16(uint16_t current, const char *GMQCC_RESTRICT k, size_t len) {
-    register uint16_t h = current;
+    uint16_t h = current;
 
     /* don't load twice */
     const uint8_t *GMQCC_RESTRICT data = (const uint8_t *GMQCC_RESTRICT)k;