Opened 3 years ago

Last modified 3 years ago

#3876 accepted enhancement

extern not so optional in extern const definitions

Reported by: fdupont Owned by: fdupont
Priority: medium Milestone: Outstanding Tasks
Component: Unclassified Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no


According to all docs for an extern const externally visible constant (default for a constant is to be only internally visible) the extern keyword is required for the declaration but not for the definition. But IMHO due to a compiler bug it is not true when the visibility was changed (cf #3764).

The obvious solution is to always use extern in both declaration and definition.


Change History (4)

comment:1 Changed 3 years ago by fdupont

I take this ticket. BTW the priority is medium because it blocks #3764 for something which is very minor...

comment:2 Changed 3 years ago by fdupont

  • Owner set to fdupont
  • Status changed from new to accepted

comment:3 Changed 3 years ago by tomek

  • Milestone changed from Kea-proposed to DHCP Outstanding Tasks

As discussed on 2015-05-20 Kea call, moving to DHCP outstanding.

comment:4 Changed 3 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

Note: See TracTickets for help on using tickets.