Fossil SCM

Remove a now-unused static const from search.c to squelch a compiler warning.

stephan 2024-01-15 12:00 trunk
Commit 17fe108ed408634efbb814e3ea1e62b2d2f271fbe58d0715d93d5a7a2db42943
1 file changed -18
-18
--- src/search.c
+++ src/search.c
@@ -558,28 +558,10 @@
558558
sqlite3_create_function(db, "body", 3, enc, 0,
559559
search_body_sqlfunc, 0, 0);
560560
sqlite3_create_function(db, "urlencode", 1, enc, 0,
561561
search_urlencode_sqlfunc, 0, 0);
562562
}
563
-
564
-/*
565
-** Search scope abbreviations and names.
566
-*/
567
-static const struct {
568
- const char *z;
569
- const char *zNm;
570
- unsigned m;
571
-} aScope[] = {
572
- { "all", "All", SRCH_ALL },
573
- { "c", "Check-ins", SRCH_CKIN },
574
- { "d", "Docs", SRCH_DOC },
575
- { "t", "Tickets", SRCH_TKT },
576
- { "w", "Wiki", SRCH_WIKI },
577
- { "e", "Tech Notes", SRCH_TECHNOTE },
578
- { "f", "Forum", SRCH_FORUM },
579
-};
580
-
581563
582564
/*
583565
** Testing the search function.
584566
**
585567
** COMMAND: search*
586568
--- src/search.c
+++ src/search.c
@@ -558,28 +558,10 @@
558 sqlite3_create_function(db, "body", 3, enc, 0,
559 search_body_sqlfunc, 0, 0);
560 sqlite3_create_function(db, "urlencode", 1, enc, 0,
561 search_urlencode_sqlfunc, 0, 0);
562 }
563
564 /*
565 ** Search scope abbreviations and names.
566 */
567 static const struct {
568 const char *z;
569 const char *zNm;
570 unsigned m;
571 } aScope[] = {
572 { "all", "All", SRCH_ALL },
573 { "c", "Check-ins", SRCH_CKIN },
574 { "d", "Docs", SRCH_DOC },
575 { "t", "Tickets", SRCH_TKT },
576 { "w", "Wiki", SRCH_WIKI },
577 { "e", "Tech Notes", SRCH_TECHNOTE },
578 { "f", "Forum", SRCH_FORUM },
579 };
580
581
582 /*
583 ** Testing the search function.
584 **
585 ** COMMAND: search*
586
--- src/search.c
+++ src/search.c
@@ -558,28 +558,10 @@
558 sqlite3_create_function(db, "body", 3, enc, 0,
559 search_body_sqlfunc, 0, 0);
560 sqlite3_create_function(db, "urlencode", 1, enc, 0,
561 search_urlencode_sqlfunc, 0, 0);
562 }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
563
564 /*
565 ** Testing the search function.
566 **
567 ** COMMAND: search*
568

Keyboard Shortcuts

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