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

Bug#49608: asm/system.h not C++-clean on Alpha



Package: libc6.1-dev
Version: 2.1.2-9
Severity: normal
File: /usr/include/asm/system.h

When #including <sys/io.h> in a C++ program, one gets:

In file included from /usr/include/asm/io.h:5,
                 from /usr/include/sys/io.h:27,
                 from /tmp/bla.cc:1:
/usr/include/asm/system.h: In function `long unsigned int __xchg(long unsigned int, volatile void *, int)':
/usr/include/asm/system.h:339: ANSI C++ forbids implicit conversion from `void *' in argument passing
/usr/include/asm/system.h:341: ANSI C++ forbids implicit conversion from `void *' in argument passing

A cast has to be added to make it C++-compliant.

This is very likely Alpha-specific.

	Falk


-- System Information
Debian Release: potato
Architecture: alpha
Kernel: Linux borkum 2.2.13 #2 Wed Oct 20 16:30:02 CEST 1999 alpha

Versions of packages libc6.1-dev depends on:
ii  libc6.1                       2.1.2-9    GNU C Library: Shared libraries an


Reply to: