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

Bug#46719: marked as done (towupper() macro generates compiler warning with C++)



Your message dated Thu, 14 Oct 1999 09:46:21 -0700
with message-id <v0420550eb42ab5da8e33@[206.163.71.146]>
and subject line Bug#46719: towupper() macro generates compiler warning with  C++
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Oct 1999 20:05:04 +0000
Received: (qmail 3761 invoked from network); 5 Oct 1999 20:05:02 -0000
Received: from chiark.greenend.org.uk (mail@195.224.76.132)
  by master.debian.org with SMTP; 5 Oct 1999 20:05:02 -0000
Received: from richard by chiark.greenend.org.uk with local-bsmtp (Exim 2.05 #1)
	id 11YapY-0002uO-00 (Debian); Tue, 5 Oct 1999 21:05:00 +0100
Received: from lyonesse.relativity.greenend.org.uk [172.18.45.66] (mail)
	by sfere.greenend.org.uk with esmtp (Exim 2.05 #1 (Debian))
	id 11YZoz-0001FQ-00; Tue, 5 Oct 1999 20:00:21 +0100
Received: from richard by lyonesse.relativity.greenend.org.uk with local (Exim 2.05 #1 (Debian))
	id 11YZoy-00068I-00; Tue, 5 Oct 1999 20:00:20 +0100
From: Richard Kettlewell <rjk@sfere.greenend.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Date: Tue,  5 Oct 1999 20:00:19 +0100 (BST)
To: submit@bugs.debian.org
Subject: towupper() macro generates compiler warning with C++
X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs  Lucid
Message-ID: <[🔎] 14330.18850.990319.724113@lyonesse.relativity.greenend.org.uk>
Sender: Richard Kettlewell <richard@sfere.greenend.org.uk>

Package: libc6-dev
Version: 2.0.7.19981211

lyonesse$ cat t.cc
#include <wctype.h>
#include <stddef.h>

wchar_t foo(wchar_t c) {
    return towupper(c);
}

lyonesse$ c++ -c t.cc
t.cc: In function `__wchar_t foo(__wchar_t)':
t.cc:5: warning: passing `const int *' as argument 2 of `towctrans(wint_t, const unsigned int *)' changes signedness

lyonesse$ cat u.cc
#include <cwctype>

wchar_t foo(wchar_t c) {
    return towupper(c);
}

lyonesse$ c++ -c u.cc
u.cc: In function `__wchar_t foo(__wchar_t)':
u.cc:4: warning: passing `const int *' as argument 2 of `towctrans(wint_t, const unsigned int *)' changes signedness

Header files from the C or C++ library should not produce compiler
warnings, as it makes the `-Werror' option useless.

ii  g++             2.91.60-5      The GNU (egcs) C++ compiler.

ttfn/rjk
---------------------------------------
Received: (at 46719-done) by bugs.debian.org; 14 Oct 1999 16:47:16 +0000
Received: (qmail 6696 invoked from network); 14 Oct 1999 16:47:15 -0000
Received: from cerberus.espy.org (mail@206.163.71.145)
  by master.debian.org with SMTP; 14 Oct 1999 16:47:15 -0000
Received: from hercules.espy.org [206.163.71.146] 
	by cerberus.espy.org with esmtp (Exim 3.03 #1 (Debian GNU/Linux))
	id 11bo26-000460-00; Thu, 14 Oct 1999 09:47:14 -0700
Mime-Version: 1.0
X-Sender: jk@mail.espy.org
Message-Id: <v0420550eb42ab5da8e33@[206.163.71.146]>
In-Reply-To:
 <[🔎] 14330.18850.990319.724113@lyonesse.relativity.greenend.org.uk>
References: <[🔎] 14330.18850.990319.724113@lyonesse.relativity.greenend.org.uk>
Date: Thu, 14 Oct 1999 09:46:21 -0700
To: 46719-done@bugs.debian.org
From: Joel Klecker <jk@espy.org>
Subject: Re: Bug#46719: towupper() macro generates compiler warning with
 C++
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

At 20:00 +0100 1999-10-05, Richard Kettlewell wrote:
>Header files from the C or C++ library should not produce compiler
>warnings, as it makes the `-Werror' option useless.

jk@cerberus:[~glibc/glibc-2.1.2]% cat > t.cc
#include <wctype.h>
#include <stddef.h>

wchar_t foo(wchar_t c) {
     return towupper(c);
}
jk@cerberus:[~glibc/glibc-2.1.2]% g++ -c t.cc
jk@cerberus:[~glibc/glibc-2.1.2]% cat > u.cc
#include <cwctype>

wchar_t foo(wchar_t c) {
     return towupper(c);
}
jk@cerberus:[~glibc/glibc-2.1.2]% g++ -c u.cc

Problem not present in glibc 2.1.
-- 
Joel Klecker (aka Espy)       <URL:mailto:espy@debian.org>
Debian Package Maintainer for the GNU C Library.


Reply to: