Recent

Author Topic: Treat a specific compiler warning as an error?  (Read 261 times)

Bart

  • Hero Member
  • *****
  • Posts: 3789
    • Bart en Mariska's Webstek
Treat a specific compiler warning as an error?
« on: February 22, 2020, 04:16:19 pm »
Hi,

Is it possible to make the compiler treat a specific warning (in my case 3177) as a compilation error?

Bart

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 702
Re: Treat a specific compiler warning as an error?
« Reply #1 on: February 22, 2020, 04:48:39 pm »
{$warn 3177 error}

I don't think there's a way to do the same from the command line.

Bart

  • Hero Member
  • *****
  • Posts: 3789
    • Bart en Mariska's Webstek
Re: Treat a specific compiler warning as an error?
« Reply #2 on: February 22, 2020, 11:29:25 pm »
{$warn 3177 error}

I don't think there's a way to do the same from the command line.

Thanks.
I was hoping for a compiler directive in the sourcecode.

Bart

 

TinyPortal © 2005-2018