Fossil SCM

Fix some compiler warnings.

mistachkin 2018-08-08 00:03 trunk
Commit 250fc00dd3706ddc091378c4295f1c5d0467d7c707e0641e20137963d2d0733a
--- src/backoffice.c
+++ src/backoffice.c
@@ -124,10 +124,11 @@
124124
** This function emits a diagnostic message related to the processing in
125125
** this module.
126126
*/
127127
#if defined(_WIN32)
128128
# define BKOFCE_ALWAYS_TRACE (1)
129
+extern void sqlite3_win32_write_debug(const char *, int);
129130
#else
130131
# define BKOFCE_ALWAYS_TRACE (0)
131132
#endif
132133
static void backofficeTrace(const char *zFormat, ...){
133134
char *zMsg = 0;
134135
--- 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 @@
2020
*/
2121
#include "VERSION.h"
2222
#include "config.h"
2323
#if defined(_WIN32)
2424
# include <windows.h>
25
+# include <io.h>
26
+# define isatty(h) _isatty(h)
2527
# define GETPID (int)GetCurrentProcessId
2628
#endif
2729
#include "main.h"
2830
#include <string.h>
2931
#include <time.h>
3032
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button