Steve Moser
Steve Moser

Reputation: 7807

How do I use #pragma warnings while leaving on -Werror "Treat warnings as errors" in Xcode?

I like the -Werror "Treat warnings as errors" cflag but I also like to use warning pragmas as a reminder to fix up things after compiling but before committing my changes. Is there a way to use both as the same time?

Upvotes: 1

Views: 255

Answers (1)

Steve Moser
Steve Moser

Reputation: 7807

Jeff Nadeau:

@SteveMoser you can put -Wno-error=#warnings in your cflags and they’ll be relaxed back down to warnings. (Which is exactly what we do, project-wide)

enter image description here

Upvotes: 1

Related Questions