bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] A couple of warnings during compilation


From: Stefano Lattarini
Subject: [bug-gettext] A couple of warnings during compilation
Date: Sat, 29 Dec 2012 15:09:33 +0100

Hi gettexters.

I've just tried bootstrapping and building the gettext master
with the development version of Automake.  Doing so, I have
noticed a few warnings reported by GCC and GCJ (I've been
running the compilation rules in "quiet" mode, with "make V=0",
to have possible warnings stick out more clearly).

Here are the warnings I've noticed:

  msgl-fsearch.c:200:3: warning: variably modified ‘short_messages’ \
    at file scope [enabled by default]

  gcj  ./gnu/gettext/DumpResource.java --main=gnu.gettext.DumpResource \
    -o gnu.gettext.DumpResource
  ./gnu/gettext/DumpResource.java:120: warning: Enumeration is a raw type. \
    References to generic type Enumeration<E> should be parameterized
        Enumeration keys = catalog.getKeys();
        ^^^^^^^^^^^
  ./gnu/gettext/DumpResource.java:135: warning: Enumeration is a raw type. \
    References to generic type Enumeration<E> should be parameterized
        Enumeration keys = catalog.getKeys();
        ^^^^^^^^^^^
  ./gnu/gettext/DumpResource.java:167: warning: Hashtable is a raw type. \
    References to generic type Hashtable<K,V> should be parameterized
        } else if (plural instanceof Hashtable) {
                                     ^^^^^^^^^
  ./gnu/gettext/DumpResource.java:173: warning: Hashtable is a raw type. \
     References to generic type Hashtable<K,V> should be parameterized
        String key_plural = (value instanceof String[] ? 
(String)((Hashtable)plural).get(key) : null);
                                                                   ^^^^^^^^^
  4 problems (4 warnings)

GCC and GCJ versions:

  $ gcc --version
  gcc (Debian 4.7.2-4) 4.7.2
  Copyright (C) 2012 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  $ gcj --version
  gcj (Debian 4.6.3-1) 4.6.3
  Copyright (C) 2011 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Admittedly, this is probably not a big deal, but I thought it
is best to report it nonetheless, as the Gettext developers are
surely more apt than me at judging its actual (ir)relevance.

Regards,
  Stefano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]