Fossil SCM

Fix harmless compiler warnings.

drh 2016-07-23 22:02 trunk
Commit fd35e3396a86fb1bf025c66916486a30d4231977
2 files changed +2 -1 +2
+2 -1
--- src/db.c
+++ src/db.c
@@ -1808,14 +1808,15 @@
18081808
char c = i==argc-1 ? '\n' : ' ';
18091809
fossil_print("%s%c", sqlite3_value_text(argv[i]), c);
18101810
}
18111811
}
18121812
}
1813
-LOCAL int db_sql_trace(int m, void *notUsed, void *pNotUsed2, void *pX){
1813
+LOCAL int db_sql_trace(unsigned m, void *notUsed, void *pNotUsed2, void *pX){
18141814
const char *zSql = (const char*)pX;
18151815
int n = strlen(zSql);
18161816
fossil_trace("%s%s\n", zSql, (n>0 && zSql[n-1]==';') ? "" : ";");
1817
+ return 0;
18171818
}
18181819
18191820
/*
18201821
** Implement the user() SQL function. user() takes no arguments and
18211822
** returns the user ID of the current user.
18221823
--- src/db.c
+++ src/db.c
@@ -1808,14 +1808,15 @@
1808 char c = i==argc-1 ? '\n' : ' ';
1809 fossil_print("%s%c", sqlite3_value_text(argv[i]), c);
1810 }
1811 }
1812 }
1813 LOCAL int db_sql_trace(int m, void *notUsed, void *pNotUsed2, void *pX){
1814 const char *zSql = (const char*)pX;
1815 int n = strlen(zSql);
1816 fossil_trace("%s%s\n", zSql, (n>0 && zSql[n-1]==';') ? "" : ";");
 
1817 }
1818
1819 /*
1820 ** Implement the user() SQL function. user() takes no arguments and
1821 ** returns the user ID of the current user.
1822
--- src/db.c
+++ src/db.c
@@ -1808,14 +1808,15 @@
1808 char c = i==argc-1 ? '\n' : ' ';
1809 fossil_print("%s%c", sqlite3_value_text(argv[i]), c);
1810 }
1811 }
1812 }
1813 LOCAL int db_sql_trace(unsigned m, void *notUsed, void *pNotUsed2, void *pX){
1814 const char *zSql = (const char*)pX;
1815 int n = strlen(zSql);
1816 fossil_trace("%s%s\n", zSql, (n>0 && zSql[n-1]==';') ? "" : ";");
1817 return 0;
1818 }
1819
1820 /*
1821 ** Implement the user() SQL function. user() takes no arguments and
1822 ** returns the user ID of the current user.
1823
--- src/fshell.c
+++ src/fshell.c
@@ -25,10 +25,11 @@
2525
** It allows multiple commands to be issued without having to reenter the
2626
** crypto phasephrase for each command.
2727
*/
2828
#include "config.h"
2929
#include "fshell.h"
30
+#include <ctype.h>
3031
3132
3233
/*
3334
** COMMAND: shell*
3435
**
@@ -97,10 +98,11 @@
9798
fflush(stdout);
9899
continue;
99100
}
100101
if( childPid==0 ){
101102
/* This is the child process */
103
+ int main(int, char**);
102104
main(nArg, azArg);
103105
exit(0);
104106
}else{
105107
/* The parent process */
106108
int status;
107109
--- src/fshell.c
+++ src/fshell.c
@@ -25,10 +25,11 @@
25 ** It allows multiple commands to be issued without having to reenter the
26 ** crypto phasephrase for each command.
27 */
28 #include "config.h"
29 #include "fshell.h"
 
30
31
32 /*
33 ** COMMAND: shell*
34 **
@@ -97,10 +98,11 @@
97 fflush(stdout);
98 continue;
99 }
100 if( childPid==0 ){
101 /* This is the child process */
 
102 main(nArg, azArg);
103 exit(0);
104 }else{
105 /* The parent process */
106 int status;
107
--- src/fshell.c
+++ src/fshell.c
@@ -25,10 +25,11 @@
25 ** It allows multiple commands to be issued without having to reenter the
26 ** crypto phasephrase for each command.
27 */
28 #include "config.h"
29 #include "fshell.h"
30 #include <ctype.h>
31
32
33 /*
34 ** COMMAND: shell*
35 **
@@ -97,10 +98,11 @@
98 fflush(stdout);
99 continue;
100 }
101 if( childPid==0 ){
102 /* This is the child process */
103 int main(int, char**);
104 main(nArg, azArg);
105 exit(0);
106 }else{
107 /* The parent process */
108 int status;
109

Keyboard Shortcuts

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