1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-25 20:58:26 +03:00

Fix a couple of (harmless) intel compiler warnings. (CVS 3034)

FossilOrigin-Name: 2e23231f0c10b2bba9e08ea47859e2c0ffa84c76
This commit is contained in:
danielk1977
2006-01-27 06:32:00 +00:00
parent 0ed4fcdcac
commit 4d5238f0c0
3 changed files with 11 additions and 10 deletions

View File

@@ -450,7 +450,7 @@ static void *threadLockingTest(void *pArg){
** can override each others locks then sets the
** threadsOverrideEachOthersLocks variable appropriately.
*/
static void testThreadLockingBehavior(fd_orig){
static void testThreadLockingBehavior(int fd_orig){
int fd;
struct threadTestData d[2];
pthread_t t[2];
@@ -1752,7 +1752,8 @@ int sqlite3_tsd_count = 0;
** unallocated or gets deallocated.
*/
ThreadData *sqlite3UnixThreadSpecificData(int allocateFlag){
static const ThreadData zeroData;
static const ThreadData zeroData = {0}; /* Initializer to silence warnings
** from broken compilers */
#ifdef SQLITE_UNIX_THREADS
static pthread_key_t key;
static int keyInit = 0;