Shreyas S
Shreyas S

Reputation: 358

-Wundef and -Werror=undef aren't working together in MinGw 4.4.1

According to the GCC documentation -Wundef emits a warning when an undefined identifier is used in a #if directive and -Werror= displays the specified warning as error

But they are not working together in MinGW 4.4.1. Although -Wundef works and -Werror (to display all warnings as error) work.

Is this a known issue? Any workarounds available?

Upvotes: 2

Views: 1354

Answers (1)

Shreyas S
Shreyas S

Reputation: 358

Looks like there's a problem with MinGW 4.4.1 Worked like a charm in 4.6.2

Upvotes: 2

Related Questions