Shop OBEX P1 Docs P2 Docs Learn Events
How do I disable warning W1047 in Delphi ? — Parallax Forums

How do I disable warning W1047 in Delphi ?

BeanBean Posts: 8,129
edited 2007-08-11 15:57 in General Discussion
I know there are some Delphi programmers on the forum, I need some help.

I keep getting a bunch of these warnings "[noparse][[/noparse]Pascal Warning] SXB.dpr(801): W1047 Unsafe code '^ operator'"

How do I disable them, or change the code to avoid them ?

Bean.


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Teacher: What is the difference between ignorance and apathy ?
Student: I don't know and I don't care
Teacher: Correct !
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·

Comments

  • Kevin WoodKevin Wood Posts: 1,266
    edited 2007-08-10 22:34
    It's probably a warning related to the .Net framework. The CLR doesn't allow direct memory access via pointers as it's considered "unsafe".

    There's probably an option somewhere in the compiler section to turn off .Net related warning.
  • BeanBean Posts: 8,129
    edited 2007-08-11 15:57
    Thanks, I found it under "Project->Options->Compiler Messages->Unsafe Code".

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Teacher: What is the difference between ignorance and apathy ?
    Student: I don't know and I don't care
    Teacher: Correct !
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
    ·
Sign In or Register to comment.