When I use #include <hw/inout.h> in one my header files (I’m using in8
and out8) in an inlined HW port class I get the following warnings :
/usr/include/x86/inout.h: In function void * out8s(const void *, long unsigned int, short unsigned int)': /usr/include/x86/inout.h:123: warning: cast discards qualifiers from pointer target type /usr/include/x86/inout.h: In function
void * out16s(const void *, long
unsigned int, short unsigned int)’:
/usr/include/x86/inout.h:128: warning: cast discards qualifiers from
pointer target type
/usr/include/x86/inout.h: In function `void * out32s(const void *, long
unsigned int, short unsigned int)’:
/usr/include/x86/inout.h:133: warning: cast discards qualifiers from
pointer target type
Can anyone tell me why, and is there anything to do about this ?
I am NOT using any of these three functions (if this matters).
Because this is is a header file, I am getting lots of these
I am using qcc under RTP 6.1.0
Shmuel Kahn
Can you post your compile options?
Shmuel Kahn <shmuelk@sixeye.com> wrote:
When I use #include <hw/inout.h> in one my header files (I’m using in8
and out8) in an inlined HW port class I get the following warnings :
/usr/include/x86/inout.h: In function void * out8s(const void *, long unsigned int, short unsigned int)': /usr/include/x86/inout.h:123: warning: cast discards qualifiers from pointer target type /usr/include/x86/inout.h: In function
void * out16s(const void *, long
unsigned int, short unsigned int)’:
/usr/include/x86/inout.h:128: warning: cast discards qualifiers from
pointer target type
/usr/include/x86/inout.h: In function `void * out32s(const void *, long
unsigned int, short unsigned int)’:
/usr/include/x86/inout.h:133: warning: cast discards qualifiers from
pointer target type
Can anyone tell me why, and is there anything to do about this ?
I am NOT using any of these three functions (if this matters).
Because this is is a header file, I am getting lots of these >
I am using qcc under RTP 6.1.0
Shmuel Kahn
–
cburgess@qnx.com
As written in my Makefile (I basically did some cut and paste from an
example make).
HW_TARGET = gcc_ntox86
CPPFLAGS = -V $(HW_TARGET) -w9 -g -D__QNX_OS__ -DCUT
%.o : %.cpp
qcc -c $(CFLAGS) $(CPPFLAGS) $< -o $@
Shmuel Kahn
Colin Burgess wrote:
Can you post your compile options?
Shmuel Kahn <> shmuelk@sixeye.com> > wrote:
When I use #include <hw/inout.h> in one my header files (I’m using in8
and out8) in an inlined HW port class I get the following warnings :
/usr/include/x86/inout.h: In function `void * out8s(const void *, long
unsigned int, short unsigned int)’:
I can’t reproduce this message. Can you post the output of
/usr/sbin/pkgctl /usr/include/hw/inout.h
/usr/sbin/pkgctl /usr/include/x86/inout.h
Shmuel A. Kahn <shmuelk@sixeye.com> wrote:
As written in my Makefile (I basically did some cut and paste from an
example make).
HW_TARGET = gcc_ntox86
CPPFLAGS = -V $(HW_TARGET) -w9 -g -D__QNX_OS__ -DCUT
%.o : %.cpp
qcc -c $(CFLAGS) $(CPPFLAGS) $< -o $@
Shmuel Kahn
Colin Burgess wrote:
Can you post your compile options?
Shmuel Kahn <> shmuelk@sixeye.com> > wrote:
When I use #include <hw/inout.h> in one my header files (I’m using in8
and out8) in an inlined HW port class I get the following warnings :
/usr/include/x86/inout.h: In function `void * out8s(const void *, long
unsigned int, short unsigned int)’:
–
cburgess@qnx.com
Here is the output you requested.
What is this that I have done ?
Shmuel Kahn
/usr/sbin/pkgctl /usr/include/hw/inout.h
— Information from /dev/pkginfo14 —
Localpath: [/usr/include/hw/inout.h]
Fullpath: [/pkgs/repository/qnx/os/dev-2.1.1/usr/include/hw/inout.h]
Repository: [/pkgs/repository]
Vendor: [qnx/os/dev-2.1.1]
Tree: [usr/include/hw/inout.h]
/usr/sbin/pkgctl /usr/include/x86/inout.h
— Information from /dev/pkginfo14 —
Localpath: [/usr/include/x86/inout.h]
Fullpath:
[/pkgs/repository/qnx/os/dev_x86-2.1.1/usr/include/x86/inout.h]
Repository: [/pkgs/repository]
Vendor: [qnx/os/dev_x86-2.1.1]
Tree: [usr/include/x86/inout.h]
Colin Burgess wrote:
I can’t reproduce this message. Can you post the output of
/usr/sbin/pkgctl /usr/include/hw/inout.h
/usr/sbin/pkgctl /usr/include/x86/inout.h
You need to upgrade your development headers, that should read dev-2.1.2
Shmuel A. Kahn <shmuelk@sixeye.com> wrote:
Here is the output you requested.
What is this that I have done ?
Shmuel Kahn
/usr/sbin/pkgctl /usr/include/hw/inout.h
— Information from /dev/pkginfo14 —
Localpath: [/usr/include/hw/inout.h]
Fullpath: [/pkgs/repository/qnx/os/dev-2.1.1/usr/include/hw/inout.h]
Repository: [/pkgs/repository]
Vendor: [qnx/os/dev-2.1.1]
Tree: [usr/include/hw/inout.h]
/usr/sbin/pkgctl /usr/include/x86/inout.h
— Information from /dev/pkginfo14 —
Localpath: [/usr/include/x86/inout.h]
Fullpath:
[/pkgs/repository/qnx/os/dev_x86-2.1.1/usr/include/x86/inout.h]
Repository: [/pkgs/repository]
Vendor: [qnx/os/dev_x86-2.1.1]
Tree: [usr/include/x86/inout.h]
Colin Burgess wrote:
I can’t reproduce this message. Can you post the output of
/usr/sbin/pkgctl /usr/include/hw/inout.h
/usr/sbin/pkgctl /usr/include/x86/inout.h
–
cburgess@qnx.com