aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-12-06 15:11:13 +0000
committerdrh <>2022-12-06 15:11:13 +0000
commitd84f185f9796e82b48a6c18e12b5dce05186ffd1 (patch)
tree28d1e7ab1f7c3444b13c2dc7209db82b20974eb3 /src
parentb1026aeda9a6fb2ea411a37d0db9ea516e417bd2 (diff)
downloadsqlite-d84f185f9796e82b48a6c18e12b5dce05186ffd1.tar.gz
sqlite-d84f185f9796e82b48a6c18e12b5dce05186ffd1.zip
Fix compiler warnings in the new dynamic continuation prompt logic of
the CLI. FossilOrigin-Name: 0d80500d358fa1c9b5867c2c8250d278ba813bf2ad81bb0bc3f820a71489b374
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index 78e681c02..85e708551 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -499,7 +499,7 @@ static char continuePrompt[PROMPT_LEN_MAX];
# define CONTINUE_PAREN_INCR(p,n) \
if(p && stdin_is_interactive) (trackParenLevel(p,n))
# define SCAN_TRACKER_REFTYPE struct DynaPrompt *
-# define CONTINUE_PROMPT_STATE ((SCAN_TRACKER_REFTYPE)&dynPrompt)
+# define CONTINUE_PROMPT_STATE (pDynPrompt)
static struct DynaPrompt {
char dynamicPrompt[PROMPT_LEN_MAX];
@@ -507,6 +507,7 @@ static struct DynaPrompt {
int inParenLevel;
char *zScannerAwaits;
} dynPrompt = { {0}, {0}, 0, 0 };
+static struct DynaPrompt *pDynPrompt = &dynPrompt;
/* Record parenthesis nesting level change, or force level to 0. */
static void trackParenLevel(struct DynaPrompt *p, int ni){