]> granicus.if.org Git - neomutt/commitdiff
drop pointless comments
authorRichard Russon <rich@flatcap.org>
Fri, 20 Jul 2018 21:37:28 +0000 (22:37 +0100)
committerRichard Russon <rich@flatcap.org>
Fri, 20 Jul 2018 21:37:28 +0000 (22:37 +0100)
curs_lib.c
enriched.c
init.c
mutt/date.c
mutt_curses.h
ncrypt/pgp.c
pattern.c

index eab1f598dd515eaa1ca3883459f612dd63ca8f95..c0f404b92f4961d80298d8de42a867adc5b0f168 100644 (file)
@@ -213,7 +213,7 @@ int mutt_get_field_full(const char *field, char *buf, size_t buflen,
     }
     mutt_window_clearline(MuttMessageWindow, 0);
     SETCOLOR(MT_COLOR_PROMPT);
-    addstr((char *) field); /* cast to get around bad prototypes */
+    addstr(field);
     NORMAL_COLOR;
     mutt_refresh();
     mutt_window_getxy(MuttMessageWindow, &x, NULL);
index 51a35440725926857b9811d77edc661f0e16d830..c7719f732176584ad569851ea70c905bf0fd4822 100644 (file)
@@ -575,7 +575,7 @@ int text_enriched_handler(struct Body *a, struct State *s)
         state = DONE;
         break;
 
-      case DONE: /* not reached, but gcc complains if this is absent */
+      case DONE: /* not reached */
         break;
     }
   }
diff --git a/init.c b/init.c
index a24d6ac0094f97741dc1d82bf9f6a4dd53425641..f6cfe26b3c3bc3619fb850311a5fb9efff5671f4 100644 (file)
--- a/init.c
+++ b/init.c
@@ -2116,8 +2116,6 @@ static int parse_set(struct Buffer *buf, struct Buffer *s, unsigned long data,
           free_mbtable((struct MbTable **) MuttVars[idx].var);
         else
         {
-          /* MuttVars[idx].var is already 'char**' (or some 'void**') or...
-           * so cast to 'void*' is okay */
           FREE((void *) MuttVars[idx].var);
         }
       }
@@ -2197,8 +2195,6 @@ static int parse_set(struct Buffer *buf, struct Buffer *s, unsigned long data,
           }
           else
           {
-            /* MuttVars[idx].var is already 'char**' (or some 'void**') or...
-             * so cast to 'void*' is okay */
             FREE((void *) MuttVars[idx].var);
             *((char **) MuttVars[idx].var) = mutt_str_strdup(scratch);
           }
@@ -4220,8 +4216,6 @@ int mutt_option_set(const struct Option *val, struct Buffer *err)
         char scratch[LONG_STRING];
         mutt_str_strfcpy(scratch, NONULL((const char *) val->var), sizeof(scratch));
         mutt_expand_path(scratch, sizeof(scratch));
-        /* MuttVars[idx].var is already 'char**' (or some 'void**') or...
-         * so cast to 'void*' is okay */
         FREE((void *) MuttVars[idx].var);
         *((char **) MuttVars[idx].var) = mutt_str_strdup(scratch);
         break;
@@ -4229,8 +4223,6 @@ int mutt_option_set(const struct Option *val, struct Buffer *err)
       case DT_STRING:
       case DT_COMMAND:
       {
-        /* MuttVars[idx].var is already 'char**' (or some 'void**') or...
-         * so cast to 'void*' is okay */
         FREE((void *) MuttVars[idx].var);
         *((char **) MuttVars[idx].var) = mutt_str_strdup((char *) val->var);
       }
index 1562bc3e2f82703b798875f5309e706ce2f9c667..b32fd71b67058764255106a29b2d5809dff0122e 100644 (file)
@@ -242,8 +242,7 @@ time_t mutt_date_make_time(struct tm *t, int local)
     0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334,
   };
 
-  /* Prevent an integer overflow.
-   * The time_t cast is an attempt to silence a clang range warning. */
+  /* Prevent an integer overflow. */
   if ((time_t) t->tm_year > (TM_YEAR_MAX - 1900))
     return TIME_T_MAX;
   if ((time_t) t->tm_year < (TM_YEAR_MIN - 1900))
index f5df34fd0e68236a32dfd974a4b7a607bad3a774..c0414461314b390b523a9be94133a2b49abedcee 100644 (file)
@@ -29,9 +29,9 @@
 
 #ifdef USE_SLANG_CURSES
 
-#ifndef unix /* this symbol is not defined by the hp-ux compiler (sigh) */
+#ifndef unix /* this symbol is not defined by the hp-ux compiler */
 #define unix
-#endif /* unix */
+#endif
 
 #include <slang.h> /* in addition to slcurses.h, we need slang.h for the version
                       number to test for 2.x having UTF-8 support in main.c */
index 6a20342e2fe4330ba93e0f82437e653825583fdf..22c1519891e31c861131f6c4a217e3487676041a 100644 (file)
@@ -466,7 +466,7 @@ int pgp_class_application_handler(struct Body *m, struct State *s)
   bool pgp_keyblock = false;
   bool clearsign = false;
   int rv, rc;
-  int c = 1; /* silence GCC warning */
+  int c = 1;
   long bytes;
   LOFF_T last_pos, offset;
   char buf[HUGE_STRING];
@@ -482,7 +482,7 @@ int pgp_class_application_handler(struct Body *m, struct State *s)
   char body_charset[STRING];
   mutt_body_get_charset(m, body_charset, sizeof(body_charset));
 
-  rc = 0; /* silence false compiler warning if (s->flags & MUTT_DISPLAY) */
+  rc = 0;
 
   fseeko(s->fpin, m->offset, SEEK_SET);
   last_pos = m->offset;
index 91f50a2e519a70020cd4ee883681a6b0293e9b5d..2498bb2e89e8c3903d700b2698bf959c483675f5 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -756,8 +756,6 @@ static int scan_range_num(struct Buffer *s, regmatch_t pmatch[], int group, int
   int num;
   unsigned char c;
 
-  /* this cast looks dangerous, but is already all over this code
-   * (explicit or not) */
   num = (int) strtol(&s->dptr[pmatch[group].rm_so], NULL, 0);
   c = (unsigned char) (s->dptr[pmatch[group].rm_eo - 1]);
   if (toupper(c) == 'K')