Fossil SCM
Fix some compiler warnings.
Commit
250fc00dd3706ddc091378c4295f1c5d0467d7c707e0641e20137963d2d0733a
Parent
f26ef80609602e6…
2 files changed
+1
+2
+1
| --- src/backoffice.c | ||
| +++ src/backoffice.c | ||
| @@ -124,10 +124,11 @@ | ||
| 124 | 124 | ** This function emits a diagnostic message related to the processing in |
| 125 | 125 | ** this module. |
| 126 | 126 | */ |
| 127 | 127 | #if defined(_WIN32) |
| 128 | 128 | # define BKOFCE_ALWAYS_TRACE (1) |
| 129 | +extern void sqlite3_win32_write_debug(const char *, int); | |
| 129 | 130 | #else |
| 130 | 131 | # define BKOFCE_ALWAYS_TRACE (0) |
| 131 | 132 | #endif |
| 132 | 133 | static void backofficeTrace(const char *zFormat, ...){ |
| 133 | 134 | char *zMsg = 0; |
| 134 | 135 |
| --- src/backoffice.c | |
| +++ src/backoffice.c | |
| @@ -124,10 +124,11 @@ | |
| 124 | ** This function emits a diagnostic message related to the processing in |
| 125 | ** this module. |
| 126 | */ |
| 127 | #if defined(_WIN32) |
| 128 | # define BKOFCE_ALWAYS_TRACE (1) |
| 129 | #else |
| 130 | # define BKOFCE_ALWAYS_TRACE (0) |
| 131 | #endif |
| 132 | static void backofficeTrace(const char *zFormat, ...){ |
| 133 | char *zMsg = 0; |
| 134 |
| --- src/backoffice.c | |
| +++ src/backoffice.c | |
| @@ -124,10 +124,11 @@ | |
| 124 | ** This function emits a diagnostic message related to the processing in |
| 125 | ** this module. |
| 126 | */ |
| 127 | #if defined(_WIN32) |
| 128 | # define BKOFCE_ALWAYS_TRACE (1) |
| 129 | extern void sqlite3_win32_write_debug(const char *, int); |
| 130 | #else |
| 131 | # define BKOFCE_ALWAYS_TRACE (0) |
| 132 | #endif |
| 133 | static void backofficeTrace(const char *zFormat, ...){ |
| 134 | char *zMsg = 0; |
| 135 |
+2
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -20,10 +20,12 @@ | ||
| 20 | 20 | */ |
| 21 | 21 | #include "VERSION.h" |
| 22 | 22 | #include "config.h" |
| 23 | 23 | #if defined(_WIN32) |
| 24 | 24 | # include <windows.h> |
| 25 | +# include <io.h> | |
| 26 | +# define isatty(h) _isatty(h) | |
| 25 | 27 | # define GETPID (int)GetCurrentProcessId |
| 26 | 28 | #endif |
| 27 | 29 | #include "main.h" |
| 28 | 30 | #include <string.h> |
| 29 | 31 | #include <time.h> |
| 30 | 32 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -20,10 +20,12 @@ | |
| 20 | */ |
| 21 | #include "VERSION.h" |
| 22 | #include "config.h" |
| 23 | #if defined(_WIN32) |
| 24 | # include <windows.h> |
| 25 | # define GETPID (int)GetCurrentProcessId |
| 26 | #endif |
| 27 | #include "main.h" |
| 28 | #include <string.h> |
| 29 | #include <time.h> |
| 30 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -20,10 +20,12 @@ | |
| 20 | */ |
| 21 | #include "VERSION.h" |
| 22 | #include "config.h" |
| 23 | #if defined(_WIN32) |
| 24 | # include <windows.h> |
| 25 | # include <io.h> |
| 26 | # define isatty(h) _isatty(h) |
| 27 | # define GETPID (int)GetCurrentProcessId |
| 28 | #endif |
| 29 | #include "main.h" |
| 30 | #include <string.h> |
| 31 | #include <time.h> |
| 32 |