[PATCH] score: More strict RTEMS_DEQUALIFY implementation.
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Sep 8 12:22:46 UTC 2014
Hello Pavel,
thanks, for the update. I think this dequalify only is all right, but we
should keep the RTEMS_DEVOLATILE() and RTEMS_DECONST() nonetheless for
documentation purposes. The error output is quite good:
In file included from
../../cpukit/../../../realview_pbx_a9_qemu_smp/lib/include/rtems/score/object.h:23:0,
from
../../cpukit/../../../realview_pbx_a9_qemu_smp/lib/include/rtems/posix/key.h:26,
from
../../cpukit/../../../realview_pbx_a9_qemu_smp/lib/include/rtems/posix/keyimpl.h:19,
from
/home/sh/rtems-4.11/c/src/../../cpukit/posix/src/keysetspecific.c:22:
/home/sh/rtems-4.11/c/src/../../cpukit/posix/src/keysetspecific.c: In function
'pthread_setspecific':
../../cpukit/../../../realview_pbx_a9_qemu_smp/lib/include/rtems/score/basedefs.h:252:5:
error: call to 'RTEMS_DEQUALIFY_types_not_compatible' declared with attribute
error: RTEMS_DEQUALIFY types differ not only by volatile and const
RTEMS_DEQUALIFY_types_not_compatible() \
^
../../cpukit/../../../realview_pbx_a9_qemu_smp/lib/include/rtems/score/basedefs.h:261:3:
note: in expansion of macro 'RTEMS_DEQUALIFY_DEPTHX'
RTEMS_DEQUALIFY_DEPTHX( *, _type, _var )
^
/home/sh/rtems-4.11/c/src/../../cpukit/posix/src/keysetspecific.c:64:33: note:
in expansion of macro 'RTEMS_DECONST'
value_pair_ptr->value = RTEMS_DECONST( double *, (int *)value );
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list