1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-03 16:53:36 +03:00

Fix harmless compiler warnings in shell.c for NetBSD.

FossilOrigin-Name: 824b39e54fb9ba562be4d92cc9a54aee1cdf84cb
This commit is contained in:
drh
2016-07-13 13:05:13 +00:00
parent ce0442edf3
commit a0620acc4a
3 changed files with 9 additions and 9 deletions

View File

@@ -2946,10 +2946,10 @@ static int db_int(ShellState *p, const char *zSql){
/*
** Convert a 2-byte or 4-byte big-endian integer into a native integer
*/
unsigned int get2byteInt(unsigned char *a){
static unsigned int get2byteInt(unsigned char *a){
return (a[0]<<8) + a[1];
}
unsigned int get4byteInt(unsigned char *a){
static unsigned int get4byteInt(unsigned char *a){
return (a[0]<<24) + (a[1]<<16) + (a[2]<<8) + a[3];
}