Eliminate almost all warnings from -Wall

This commit is contained in:
Mike Brady
2018-03-07 14:29:14 +00:00
parent a7d82ae823
commit 07e46565ca
12 changed files with 125 additions and 96 deletions
+1 -1
View File
@@ -969,7 +969,7 @@ uint64_t ranarray64u() { return (ranarrayval()); }
int64_t ranarray64i() { return (ranarrayval() >> 1); }
uint32_t nctohl(const char * p) { // read 4 characters from the p and do ntohl on them
uint32_t nctohl(const uint8_t * p) { // read 4 characters from the p and do ntohl on them
// this is to avoid possible aliasing violations
uint32_t holder;
memcpy(&holder,p,sizeof(holder));