Another batch of warning fixes, including several for gcc -Wparentheses
This commit is contained in:
parent
0cb48a433a
commit
a488e1bfec
|
@ -76,6 +76,9 @@
|
||||||
* - byte-order is discovered at compile time. we use the information
|
* - byte-order is discovered at compile time. we use the information
|
||||||
* in "../../include/byteorder.h" to get this information.
|
* in "../../include/byteorder.h" to get this information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma GCC diagnostic ignored "-Wparentheses"
|
||||||
|
|
||||||
#include "stdcore.h"
|
#include "stdcore.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -619,7 +619,7 @@ char *cmd;
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
const char *argv[5]; /* argument list */
|
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 const char* shptr; /* the program to be run */
|
||||||
register int i; /* index number of child */
|
register int i; /* index number of child */
|
||||||
|
|
||||||
|
@ -672,7 +672,7 @@ char *mode;
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
const char *argv[5]; /* argument list */
|
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 const char *shptr; /* the program to be run */
|
||||||
FILE *fpa[3]; /* process communication descriptors */
|
FILE *fpa[3]; /* process communication descriptors */
|
||||||
register int indx; /* index number of child */
|
register int indx; /* index number of child */
|
||||||
|
@ -759,7 +759,7 @@ FILE *fpa[];
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
const char *argv[5]; /* argument list */
|
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 const char *shptr; /* the program to be run */
|
||||||
register int indx; /* index number of child */
|
register int indx; /* index number of child */
|
||||||
|
|
||||||
|
|
|
@ -83,8 +83,8 @@ void SHA::Final(byte *hash)
|
||||||
for this information */
|
for this information */
|
||||||
|
|
||||||
#ifdef NEW_SHA
|
#ifdef NEW_SHA
|
||||||
#define expand(W,i) ( W[ i & 15 ] = rotl( (W[i&15] ^ W[i-14&15] ^ \
|
#define expand(W,i) ( W[ i & 15 ] = rotl( (W[i&15] ^ W[(i-14)&15] ^ \
|
||||||
W[i-8&15] ^ W[i-3&15]), 1U) )
|
W[(i-8)&15] ^ W[(i-3)&15]), 1U) )
|
||||||
#else
|
#else
|
||||||
#define expand(W,i) ( W[ i & 15 ] ^= W[ i - 14 & 15 ] ^ W[ i - 8 & 15 ] ^ W[ i - 3 & 15 ] )
|
#define expand(W,i) ( W[ i & 15 ] ^= W[ i - 14 & 15 ] ^ W[ i - 8 & 15 ] ^ W[ i - 3 & 15 ] )
|
||||||
#endif /* NEW_SHA */
|
#endif /* NEW_SHA */
|
||||||
|
|
Loading…
Reference in New Issue