Another batch of warning fixes, including several for gcc -Wparentheses

This commit is contained in:
Brian Cox 2016-04-21 00:48:28 -07:00
parent 0cb48a433a
commit a488e1bfec
3 changed files with 8 additions and 5 deletions

View File

@ -76,6 +76,9 @@
* - byte-order is discovered at compile time. we use the information
* in "../../include/byteorder.h" to get this information.
*/
#pragma GCC diagnostic ignored "-Wparentheses"
#include "stdcore.h"
#include "config.h"
#include <stdio.h>

View File

@ -619,7 +619,7 @@ char *cmd;
#endif
{
const char *argv[5]; /* argument list */
register char *p; /* temoporary pointers */
register const char *p; /* temoporary pointers */
register const char* shptr; /* the program to be run */
register int i; /* index number of child */
@ -672,7 +672,7 @@ char *mode;
#endif
{
const char *argv[5]; /* argument list */
register char *p; /* temoporary pointers */
register const char *p; /* temoporary pointers */
register const char *shptr; /* the program to be run */
FILE *fpa[3]; /* process communication descriptors */
register int indx; /* index number of child */
@ -759,7 +759,7 @@ FILE *fpa[];
#endif
{
const char *argv[5]; /* argument list */
register char *p; /* temoporary pointers */
register const char *p; /* temoporary pointers */
register const char *shptr; /* the program to be run */
register int indx; /* index number of child */

View File

@ -83,8 +83,8 @@ void SHA::Final(byte *hash)
for this information */
#ifdef NEW_SHA
#define expand(W,i) ( W[ i & 15 ] = rotl( (W[i&15] ^ W[i-14&15] ^ \
W[i-8&15] ^ W[i-3&15]), 1U) )
#define expand(W,i) ( W[ i & 15 ] = rotl( (W[i&15] ^ W[(i-14)&15] ^ \
W[(i-8)&15] ^ W[(i-3)&15]), 1U) )
#else
#define expand(W,i) ( W[ i & 15 ] ^= W[ i - 14 & 15 ] ^ W[ i - 8 & 15 ] ^ W[ i - 3 & 15 ] )
#endif /* NEW_SHA */