]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix #if's in winSync to avoid compiler warnings about unused local variables. Also...
authormistachkin <mistachkin@noemail.net>
Fri, 16 Sep 2011 20:43:44 +0000 (20:43 +0000)
committermistachkin <mistachkin@noemail.net>
Fri, 16 Sep 2011 20:43:44 +0000 (20:43 +0000)
FossilOrigin-Name: 2e66e41457422449ac5918b16be443e737dfb149

Makefile.msc
manifest
manifest.uuid
src/os_win.c

index a6c5d5a75b27ab774f0c8e4715567350ecb3d2fd..01f490b42b429df3959c1b2debeaf00b58156194 100644 (file)
@@ -31,8 +31,8 @@ DEBUG = 0
 # Version numbers and release number for the SQLite being compiled.
 #
 VERSION = 3.7
-VERSION_NUMBER = 3007007
-RELEASE = 3.7.7
+VERSION_NUMBER = 3007008
+RELEASE = 3.7.8
 
 # C Compiler and options for use in building executables that
 # will run on the platform that is doing the build.
index 9ec01e70a4769bcbd7d0577d7f97a77c5993a32e..f21b28305149289ed21e1b20c2f8fe0805589143 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,9 +1,9 @@
-C Silence\sharmless\scompiler\swarning\sabout\sredefinition\sof\sthe\s_CRT_SECURE_NO_WARNINGS\smacro\sby\sshell.c.
-D 2011-09-16T20:16:36.109
+C Fix\s#if's\sin\swinSync\sto\savoid\scompiler\swarnings\sabout\sunused\slocal\svariables.\s\sAlso,\supdate\sversion\snumbers\sin\sthe\sMSVC\smakefile.
+D 2011-09-16T20:43:44.526
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in d314143fa6be24828021d3f583ad37d9afdce505
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
-F Makefile.msc 25da409ce0c7799e57f48a729a8e153b23027adc
+F Makefile.msc b5e917439d5ed42364173d1648aae1d418e323ea
 F Makefile.vxworks 1deb39c8bb047296c30161ffa10c1b5423e632f9
 F README cd04a36fbc7ea56932a4052d7d0b7f09f27c33d6
 F VERSION f724de7326e87b7f3b0a55f16ef4b4d993680d54
@@ -166,7 +166,7 @@ F src/os.h 9dbed8c2b9c1f2f2ebabc09e49829d4777c26bf9
 F src/os_common.h 92815ed65f805560b66166e3583470ff94478f04
 F src/os_os2.c 4a75888ba3dfc820ad5e8177025972d74d7f2440
 F src/os_unix.c 10e0c4dcdbec8d4189890fdf3e71b32efae194e3
-F src/os_win.c 33b7b7b48939af5cef2305f5ded19d45c025e2c7
+F src/os_win.c 0fc0f46c94b0385a940b0ee32992a833019a5985
 F src/pager.c 5545863e4e246e1744cfb6993821c6e4b63ffb64
 F src/pager.h 6bea8d1949db33768de1c5b4133b267b40845f8b
 F src/parse.y 12b7ebd61ea54f0e1b1083ff69cc2c8ce9353d58
@@ -962,7 +962,7 @@ F tool/symbols.sh caaf6ccc7300fd43353318b44524853e222557d5
 F tool/tostr.awk e75472c2f98dd76e06b8c9c1367f4ab07e122d06
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
 F tool/warnings.sh b7fdb2cc525f5ef4fa43c80e771636dd3690f9d2
-P cf51ef8ab8a610ddf64f66970dd689fe1df405b8
-R 82ae90fbdac03554dc4ad676e24ddb3c
+P 690220717f3d92d4fb7bd72226fc8d5f38f5fbcf
+R 8db2e7132a1227a7b1d23ed92e216603
 U mistachkin
-Z 2ae026d8ea384ca85214e134ca7c45bb
+Z 593341d840a3a381b39866ac10a16fed
index a0307659f72b79610b6876970b49ffba231b9223..b54465fd4d7960b97d2cd0bb3d0db9180a9ab9f4 100644 (file)
@@ -1 +1 @@
-690220717f3d92d4fb7bd72226fc8d5f38f5fbcf
\ No newline at end of file
+2e66e41457422449ac5918b16be443e737dfb149
\ No newline at end of file
index c16198bd5d1940efb60771a58275905065c29d2c..33ca96c92c283b899abae823f3188269ab3b00fc 100644 (file)
@@ -1245,9 +1245,19 @@ int sqlite3_fullsync_count = 0;
 ** Make sure all writes to a particular file are committed to disk.
 */
 static int winSync(sqlite3_file *id, int flags){
-#if !defined(NDEBUG) || !defined(SQLITE_NO_SYNC) || defined(SQLITE_DEBUG)
-  winFile *pFile = (winFile*)id;
+#ifndef SQLITE_NO_SYNC
+  /*
+  ** Used only when SQLITE_NO_SYNC is not defined.
+   */
   BOOL rc;
+#endif
+#if !defined(NDEBUG) || !defined(SQLITE_NO_SYNC) || \
+    (defined(SQLITE_TEST) && defined(SQLITE_DEBUG))
+  /*
+  ** Used when SQLITE_NO_SYNC is not defined and by the assert() and/or
+  ** OSTRACE() macros.
+   */
+  winFile *pFile = (winFile*)id;
 #else
   UNUSED_PARAMETER(id);
 #endif