Lazarus

Free Pascal => General => Topic started by: Bart on February 22, 2020, 04:16:19 pm

Title: Treat a specific compiler warning as an error?
Post by: Bart 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
Title: Re: Treat a specific compiler warning as an error?
Post by: Jonas Maebe 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.
Title: Re: Treat a specific compiler warning as an error?
Post by: Bart 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