Using a ROM based text string causes 'suspicious pointer'

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
pwdixon
Posts: 1431
Joined: 13 Apr 2005 11:14
Location: UK

Using a ROM based text string causes 'suspicious pointer'

#1 Post by pwdixon » 26 Jul 2018 12:02

Using a ROM based text string causes 'suspicious pointer conversion' warnings, the warning can be removed using advice from posting viewtopic.php?t=23196 but my question is:

Why does the text work from ROM in the first place without using codetxt_to_ramtxt()?
I would have thought if the warning would have meant the code using the text would be in the wrong memory type and hence be completely wrong.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Using a ROM based text string causes 'suspicious pointer

#2 Post by filip » 03 Aug 2018 07:27

Hi,

Can you please provide the code snippet for this issue ?

Regards,
Filip.

Post Reply

Return to “mikroC PRO for PIC32 General”