Fossil SCM
Fix some more compiler warnings seen with MSVC. Cherrypick from [24e298edd0].
Commit
dfdda77dfcc320af0a8f9f3109dd20480c62db69
Parent
38d1b52283e4fa9…
3 files changed
+1
-1
+1
-1
+1
-1
+1
-1
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -980,11 +980,11 @@ | ||
| 980 | 980 | /* |
| 981 | 981 | ** Zeroes out g.perm and calls login_set_capabilities(zCap,flags). |
| 982 | 982 | */ |
| 983 | 983 | void login_replace_capabilities(const char *zCap, unsigned flags){ |
| 984 | 984 | memset(&g.perm, 0, sizeof(g.perm)); |
| 985 | - return login_set_capabilities(zCap, flags); | |
| 985 | + login_set_capabilities(zCap, flags); | |
| 986 | 986 | } |
| 987 | 987 | |
| 988 | 988 | /* |
| 989 | 989 | ** If the current login lacks any of the capabilities listed in |
| 990 | 990 | ** the input, then return 0. If all capabilities are present, then |
| 991 | 991 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -980,11 +980,11 @@ | |
| 980 | /* |
| 981 | ** Zeroes out g.perm and calls login_set_capabilities(zCap,flags). |
| 982 | */ |
| 983 | void login_replace_capabilities(const char *zCap, unsigned flags){ |
| 984 | memset(&g.perm, 0, sizeof(g.perm)); |
| 985 | return login_set_capabilities(zCap, flags); |
| 986 | } |
| 987 | |
| 988 | /* |
| 989 | ** If the current login lacks any of the capabilities listed in |
| 990 | ** the input, then return 0. If all capabilities are present, then |
| 991 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -980,11 +980,11 @@ | |
| 980 | /* |
| 981 | ** Zeroes out g.perm and calls login_set_capabilities(zCap,flags). |
| 982 | */ |
| 983 | void login_replace_capabilities(const char *zCap, unsigned flags){ |
| 984 | memset(&g.perm, 0, sizeof(g.perm)); |
| 985 | login_set_capabilities(zCap, flags); |
| 986 | } |
| 987 | |
| 988 | /* |
| 989 | ** If the current login lacks any of the capabilities listed in |
| 990 | ** the input, then return 0. If all capabilities are present, then |
| 991 |
+1
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -319,11 +319,11 @@ | ||
| 319 | 319 | |
| 320 | 320 | /* |
| 321 | 321 | ** atexit() handler which frees up "some" of the resources |
| 322 | 322 | ** used by fossil. |
| 323 | 323 | */ |
| 324 | -void fossil_atexit() { | |
| 324 | +void fossil_atexit(void) { | |
| 325 | 325 | #ifdef FOSSIL_ENABLE_JSON |
| 326 | 326 | cson_value_free(g.json.gc.v); |
| 327 | 327 | memset(&g.json, 0, sizeof(g.json)); |
| 328 | 328 | #endif |
| 329 | 329 | free(g.zErrMsg); |
| 330 | 330 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -319,11 +319,11 @@ | |
| 319 | |
| 320 | /* |
| 321 | ** atexit() handler which frees up "some" of the resources |
| 322 | ** used by fossil. |
| 323 | */ |
| 324 | void fossil_atexit() { |
| 325 | #ifdef FOSSIL_ENABLE_JSON |
| 326 | cson_value_free(g.json.gc.v); |
| 327 | memset(&g.json, 0, sizeof(g.json)); |
| 328 | #endif |
| 329 | free(g.zErrMsg); |
| 330 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -319,11 +319,11 @@ | |
| 319 | |
| 320 | /* |
| 321 | ** atexit() handler which frees up "some" of the resources |
| 322 | ** used by fossil. |
| 323 | */ |
| 324 | void fossil_atexit(void) { |
| 325 | #ifdef FOSSIL_ENABLE_JSON |
| 326 | cson_value_free(g.json.gc.v); |
| 327 | memset(&g.json, 0, sizeof(g.json)); |
| 328 | #endif |
| 329 | free(g.zErrMsg); |
| 330 |
+1
-1
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -250,11 +250,11 @@ | ||
| 250 | 250 | char *oaa, *oas, *oar, *oaw, *oan, *oai, *oaj, *oao, *oap; |
| 251 | 251 | char *oak, *oad, *oac, *oaf, *oam, *oah, *oag, *oae; |
| 252 | 252 | char *oat, *oau, *oav, *oab, *oax, *oaz; |
| 253 | 253 | const char *zGroup; |
| 254 | 254 | const char *zOldLogin; |
| 255 | - const char *inherit[128]; | |
| 255 | + char *inherit[128]; | |
| 256 | 256 | int doWrite; |
| 257 | 257 | int uid; |
| 258 | 258 | int higherUser = 0; /* True if user being edited is SETUP and the */ |
| 259 | 259 | /* user doing the editing is ADMIN. Disallow editing */ |
| 260 | 260 | |
| 261 | 261 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -250,11 +250,11 @@ | |
| 250 | char *oaa, *oas, *oar, *oaw, *oan, *oai, *oaj, *oao, *oap; |
| 251 | char *oak, *oad, *oac, *oaf, *oam, *oah, *oag, *oae; |
| 252 | char *oat, *oau, *oav, *oab, *oax, *oaz; |
| 253 | const char *zGroup; |
| 254 | const char *zOldLogin; |
| 255 | const char *inherit[128]; |
| 256 | int doWrite; |
| 257 | int uid; |
| 258 | int higherUser = 0; /* True if user being edited is SETUP and the */ |
| 259 | /* user doing the editing is ADMIN. Disallow editing */ |
| 260 | |
| 261 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -250,11 +250,11 @@ | |
| 250 | char *oaa, *oas, *oar, *oaw, *oan, *oai, *oaj, *oao, *oap; |
| 251 | char *oak, *oad, *oac, *oaf, *oam, *oah, *oag, *oae; |
| 252 | char *oat, *oau, *oav, *oab, *oax, *oaz; |
| 253 | const char *zGroup; |
| 254 | const char *zOldLogin; |
| 255 | char *inherit[128]; |
| 256 | int doWrite; |
| 257 | int uid; |
| 258 | int higherUser = 0; /* True if user being edited is SETUP and the */ |
| 259 | /* user doing the editing is ADMIN. Disallow editing */ |
| 260 | |
| 261 |