Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2002 08:38:45 +0200 (CEST)
From:      Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   standards/40402: /usr/include/stddef.h and /usr/include/stdlib.h cause compiler warnings
Message-ID:  <200207100638.g6A6cjt9056717@belatrix.dbai.tuwien.ac.at>

next in thread | raw e-mail | index | archive | help

>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 <iostream>
#include <string>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207100638.g6A6cjt9056717>