Project

General

Profile

Actions

Bug #14347

closed

ed: mismatched bound

Added by Toomas Soome almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

Build error with gcc 11:

    ed.c:3078:28: error: argument 2 of type 'char[21]' with mismatched bound [-Werror=array-parameter=]
     3078 | stdtab(char option[], char tabvect[NTABS])
          |                       ~~~~~^~~~~~~~~~~~~~
    ed.c:286:32: note: previously declared as 'char *'
      286 | static int      stdtab(char *, char *);
          |                                ^~~~~~
    cc1: all warnings being treated as errors

This is new class of errors.

Testing done: wsdiff is only reporting differences in ed.c.

Actions #1

Updated by Electric Monk almost 2 years ago

  • Gerrit CR set to 1902
Actions #2

Updated by Toomas Soome over 1 year ago

  • Description updated (diff)
Actions #3

Updated by Electric Monk over 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit c7ebb3fa8bd1474c486063f5c422f61578a4a968

commit  c7ebb3fa8bd1474c486063f5c422f61578a4a968
Author: Toomas Soome <tsoome@me.com>
Date:   2022-01-06T20:28:50.000Z

    14347 ed: mismatched bound
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF