--- Comment #1 from pinskia at gcc dot gnu dot org 2008-04-14 03:33 ---
The const in const THANDLE applies to the pointer type and not the element
the pointer is pointing to. So the warning is correct.
--
pinskia at gcc dot gnu dot org changed:
What|Removed
--- Comment #2 from cnstar9988 at gmail dot com 2008-04-14 03:49 ---
but how to applies to the pointer type and the element
the pointer is pointing to.
I don't want someone modify my pointer and the pointing to?
but the following code has no warning, why?
#include stdio.h
#include
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-04-14 04:10 ---
const THANDLE in the first case is equivalant to THANDLE* const when
THANDLE a struct.
but how to applies to the pointer type and the element
the pointer is pointing to.
With the typedefs, you can't.
--