From owner-freebsd-standards Tue Jul 9 23:40:18 2002 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02C3C37B400 for ; Tue, 9 Jul 2002 23:40:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AC7B43E54 for ; Tue, 9 Jul 2002 23:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6A6e2JU081357 for ; Tue, 9 Jul 2002 23:40:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6A6e2iU081356; Tue, 9 Jul 2002 23:40:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13FC037B400 for ; Tue, 9 Jul 2002 23:38:50 -0700 (PDT) Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id E074F43E42 for ; Tue, 9 Jul 2002 23:38:48 -0700 (PDT) (envelope-from pfeifer@dbai.tuwien.ac.at) Received: from belatrix.dbai.tuwien.ac.at (belatrix [128.130.111.33]) by vexpert.dbai.tuwien.ac.at (8.11.6/8.11.6) with ESMTP id g6A6cjC07560; Wed, 10 Jul 2002 08:38:45 +0200 (MET DST) Received: (from pfeifer@localhost) by belatrix.dbai.tuwien.ac.at (8.12.5/8.12.5/Submit) id g6A6cjt9056717; Wed, 10 Jul 2002 08:38:45 +0200 (CEST) (envelope-from pfeifer) Message-Id: <200207100638.g6A6cjt9056717@belatrix.dbai.tuwien.ac.at> Date: Wed, 10 Jul 2002 08:38:45 +0200 (CEST) From: Gerald Pfeifer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: standards/40402: /usr/include/stddef.h and /usr/include/stdlib.h cause compiler warnings Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Number: 40402 >Category: standards >Synopsis: /usr/include/stddef.h and /usr/include/stdlib.h cause compiler warnings >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 09 23:40:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Gerald Pfeifer >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD belatrix.dbai.tuwien.ac.at 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Jul 4 19:14:52 CEST 2002 pisjak@procyon.dbai.tuwien.ac.at:/usr/obj/files/pisjak/pisjak/tmp/FreeBSD/src/sys/DBAI i386 >Description: /usr/include/stddef.h and /usr/include/stdlib.h cause compiler warnings with g++ and -pedantic. This is a regression from 4.5-RELEASE and also reproducible on ref4; -CURRENT and ref5 do not seem to have this problem. >How-To-Repeat: % cat x.cc #include #include int main() { } % g++ -pedantic x.cc In file included from /usr/include/g++/_G_config.h:101, from /usr/include/g++/libio.h:30, from /usr/include/g++/streambuf.h:36, from /usr/include/g++/iostream.h:31, from /usr/include/g++/iostream:6, from x.cc:1: /usr/include/stddef.h:58: warning: redeclaration of wchar_t as `int' In file included from /usr/include/g++/stl_alloc.h:54, from /usr/include/g++/alloc.h:21, from /usr/include/g++/std/bastring.h:39, from /usr/include/g++/string:6, from x.cc:2: /usr/include/stdlib.h:108: warning: ANSI C++ does not support `long long' /usr/include/stdlib.h:112: warning: ANSI C++ does not support `long long' >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message