bugGNU gettext - Bugs: bug #55149, gettext.h incompatible with g++...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #55149: gettext.h incompatible with g++ -pedantic

Submitter:  Bruno Haible <haible>
Submitted:  Sun 02 Dec 2018 11:48:56 AM UTC
   
 
Category:  Programmer interface Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Sun 01 Dec 2024 04:33:15 PM UTC, comment #3: 

The fix is contained in gettext 0.23.

Bruno Haible <haible>
Group administrator
Tue 15 Oct 2024 02:50:12 PM UTC, comment #2: 

The reporter's statement was incorrect. 'g++ -pedantic' (as well as 'clang++ -pedantic') produces a warning, not an error.

Fixed through https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=d2293e7a807388447b868f4a4333370bd77c8d3e .

(, , , )

Bruno Haible <haible>
Group administrator
Tue 15 Oct 2024 02:23:48 PM UTC, comment #1: 

compiling

#include "/usr/share/gettext/gettext.h"

int main()
{
  return 0;
}

with g++ -pedantic results in:

/usr/share/gettext/gettext.h: In function ‘const char* dcpgettext_expr(const char*, const char*, const char*, int)’:
/usr/share/gettext/gettext.h:201: error: ISO C++ forbids variable length array ‘msg_ctxt_id’
/usr/share/gettext/gettext.h: In function ‘const char* dcnpgettext_expr(const char*, const char*, const char*, const char*, long unsigned int, int)’:
/usr/share/gettext/gettext.h:247: error: ISO C++ forbids variable length array ‘msg_ctxt_id’



(, , , )

Bruno Haible <haible>
Group administrator
Sun 02 Dec 2018 11:48:56 AM UTC, original submission:  
Bruno Haible <haible>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-12-01 haible StatusFixed Fix Released
    2024-10-15 haible StatusNone Fixed
        Assigned toNone haible
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.14-9aa3.
    Corresponding source code