Fossil SCM

Fix compiler warning seen with MSVC.

mistachkin 2021-03-18 03:21 trunk
Commit 2dbc71549647541c2df249841924e509efb4416183b9bfc38a3d86a8118ab29f
1 file changed +4
--- src/json_detail.h
+++ src/json_detail.h
@@ -16,11 +16,13 @@
1616
** [email protected]
1717
** http://www.hwaci.com/drh/
1818
**
1919
*/
2020
21
+#if !defined(_RC_COMPILE_)
2122
#include "cson_amalgamation.h"
23
+#endif /* !defined(_RC_COMPILE_) */
2224
2325
/**
2426
FOSSIL_JSON_API_VERSION holds the date (YYYYMMDD) of the latest
2527
"significant" change to the JSON API (a change in an interface or
2628
new functionality). It is sent as part of the /json/version
@@ -53,10 +55,11 @@
5355
** Maintenance reminder: when entries are added to this list, update
5456
** the code in json_page_resultCodes() and json_err_cstr() (both in
5557
** json.c)!
5658
**
5759
*/
60
+#if !defined(_RC_COMPILE_)
5861
enum FossilJsonCodes {
5962
FSL_JSON_W_START = 0,
6063
FSL_JSON_W_UNKNOWN /*+1*/,
6164
FSL_JSON_W_ROW_TO_JSON_FAILED /*+2*/,
6265
FSL_JSON_W_COL_TO_JSON_FAILED /*+3*/,
@@ -263,7 +266,8 @@
263266
264267
enum json_get_changed_files_flags {
265268
json_get_changed_files_ELIDE_PARENT = 1 << 0
266269
};
267270
271
+#endif /* !defined(_RC_COMPILE_) */
268272
#endif/*FOSSIL_JSON_DETAIL_H_INCLUDED*/
269273
#endif /* FOSSIL_ENABLE_JSON */
270274
--- src/json_detail.h
+++ src/json_detail.h
@@ -16,11 +16,13 @@
16 ** [email protected]
17 ** http://www.hwaci.com/drh/
18 **
19 */
20
 
21 #include "cson_amalgamation.h"
 
22
23 /**
24 FOSSIL_JSON_API_VERSION holds the date (YYYYMMDD) of the latest
25 "significant" change to the JSON API (a change in an interface or
26 new functionality). It is sent as part of the /json/version
@@ -53,10 +55,11 @@
53 ** Maintenance reminder: when entries are added to this list, update
54 ** the code in json_page_resultCodes() and json_err_cstr() (both in
55 ** json.c)!
56 **
57 */
 
58 enum FossilJsonCodes {
59 FSL_JSON_W_START = 0,
60 FSL_JSON_W_UNKNOWN /*+1*/,
61 FSL_JSON_W_ROW_TO_JSON_FAILED /*+2*/,
62 FSL_JSON_W_COL_TO_JSON_FAILED /*+3*/,
@@ -263,7 +266,8 @@
263
264 enum json_get_changed_files_flags {
265 json_get_changed_files_ELIDE_PARENT = 1 << 0
266 };
267
 
268 #endif/*FOSSIL_JSON_DETAIL_H_INCLUDED*/
269 #endif /* FOSSIL_ENABLE_JSON */
270
--- src/json_detail.h
+++ src/json_detail.h
@@ -16,11 +16,13 @@
16 ** [email protected]
17 ** http://www.hwaci.com/drh/
18 **
19 */
20
21 #if !defined(_RC_COMPILE_)
22 #include "cson_amalgamation.h"
23 #endif /* !defined(_RC_COMPILE_) */
24
25 /**
26 FOSSIL_JSON_API_VERSION holds the date (YYYYMMDD) of the latest
27 "significant" change to the JSON API (a change in an interface or
28 new functionality). It is sent as part of the /json/version
@@ -53,10 +55,11 @@
55 ** Maintenance reminder: when entries are added to this list, update
56 ** the code in json_page_resultCodes() and json_err_cstr() (both in
57 ** json.c)!
58 **
59 */
60 #if !defined(_RC_COMPILE_)
61 enum FossilJsonCodes {
62 FSL_JSON_W_START = 0,
63 FSL_JSON_W_UNKNOWN /*+1*/,
64 FSL_JSON_W_ROW_TO_JSON_FAILED /*+2*/,
65 FSL_JSON_W_COL_TO_JSON_FAILED /*+3*/,
@@ -263,7 +266,8 @@
266
267 enum json_get_changed_files_flags {
268 json_get_changed_files_ELIDE_PARENT = 1 << 0
269 };
270
271 #endif /* !defined(_RC_COMPILE_) */
272 #endif/*FOSSIL_JSON_DETAIL_H_INCLUDED*/
273 #endif /* FOSSIL_ENABLE_JSON */
274

Keyboard Shortcuts

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