diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-04-08 08:53:12 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-04-08 08:53:12 -0600 |
commit | 7ca059d80aae996ff3031aca15241a55e255a0f5 (patch) | |
tree | 5b7ca64156469d2ba4f89d1de00871d75ca4626f /pico | |
parent | 4f13a7bcddc60430203fd545a3c584b3e9fc27aa (diff) | |
download | alpine-7ca059d80aae996ff3031aca15241a55e255a0f5.tar.xz |
* Clear out some warnings given by gcc 10.
Diffstat (limited to 'pico')
-rw-r--r-- | pico/display.c | 11 | ||||
-rw-r--r-- | pico/main.c | 3 | ||||
-rw-r--r-- | pico/search.c | 2 |
3 files changed, 5 insertions, 11 deletions
diff --git a/pico/display.c b/pico/display.c index 705dae10..fe92cbd8 100644 --- a/pico/display.c +++ b/pico/display.c @@ -425,7 +425,6 @@ update(void) int j; int scroll = 0; int repaint= 0; - int quoted; CELL c; PCOLORS *pcolors = Pmaster && Pmaster->colors ? Pmaster->colors : Pcolors; @@ -989,12 +988,12 @@ updext(void) void updatelinecolor (int row, CELL vline[], CELL pline[], short *flags, int len) { - CELL *cp1, *cp2, *cp3, *cp4, *cp5, *cp6, *cp7; + CELL *cp1, *cp2, *cp3, *cp4, *cp5; int nbflag; /* non-blanks to the right flag? */ int cleartoeol = 0; - int in_quote, quote_found = 0, level; + int in_quote, level; PCOLORS *pcolors = Pmaster && Pmaster->colors ? Pmaster->colors : Pcolors; - COLOR_PAIR *qcolor = NULL, *lastc = NULL, *pcolor = NULL; + COLOR_PAIR *lastc = NULL, *pcolor = NULL; int first = 1, lastattr = -1, change = 0; if(pcolors == NULL){ @@ -1585,9 +1584,7 @@ speller_choice(char **sp_list, int *choice) ch_dict = -1; if(ch_dict < 0){ /* not a choice yet? do one now! */ - UCS buf[128]; int i; - char *utf8_prompt; UCS *ucs4_prompt; EXTRAKEYS menu_dictionary[] = { {"0", NULL, '0'}, @@ -1608,7 +1605,6 @@ speller_choice(char **sp_list, int *choice) if(cnt < 10) menu_dictionary[cnt].name = NULL; - buf[0] = '\0'; /* write the prompt in utf8, and let internal functions translate it to ucs4 */ ucs4_prompt = utf8_to_ucs4_cpystr(_("Choose Dictionary: ")); @@ -1638,7 +1634,6 @@ mlchoose(UCS *prompt, EXTRAKEYS *extras) UCS c; UCS buf[NLINE]; int i; - int changed = FALSE; int return_val = 0; KEYMENU menu_choose[12]; COLOR_PAIR *lastc = NULL; diff --git a/pico/main.c b/pico/main.c index 1001edd1..94b60adc 100644 --- a/pico/main.c +++ b/pico/main.c @@ -495,10 +495,9 @@ void display_color_codes(void) { #define SPACES " " - int i, j, k, l, a, len, len_entry, row; + int i, k, l, a; int ncolors; COLOR_PAIR *lastc = NULL, *newcp; - char *fg; /* this is the format "SPACE COLORED_SPACES = CODE SPACE" */ vtterminalinfo(gmode & MDTCAPWINS); diff --git a/pico/search.c b/pico/search.c index 282e37e9..387cc2ef 100644 --- a/pico/search.c +++ b/pico/search.c @@ -469,7 +469,7 @@ replace_pat(UCS *defpat, int *wrapt, int bsearch) char utf8tmp[NPMT]; UCS prompt[NPMT]; UCS *promptp; - int i, flags; + int flags; if(bsearch){ flags = SR_BACKWRD; |