Skip to content

ExtWarn diagnostics shouldn't print [-pedantic] #7186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
llvmbot opened this issue Apr 10, 2010 · 6 comments
Closed

ExtWarn diagnostics shouldn't print [-pedantic] #7186

llvmbot opened this issue Apr 10, 2010 · 6 comments
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category

Comments

@llvmbot
Copy link
Member

llvmbot commented Apr 10, 2010

Bugzilla Link 6814
Resolution FIXED
Resolved on Apr 12, 2010 16:53
Version trunk
OS Windows NT
Blocks llvm/llvm-bugzilla-archive#6815
Reporter LLVM Bugzilla Contributor
CC @nlewycky

Extended Description

-pedantic is on by default, even if it's not being used

@llvmbot
Copy link
Member Author

llvmbot commented Apr 10, 2010

The error I had is :
In file included from :108:
(10) : error: '_M_IX86' macro redefined [-pedantic]
#define _M_IX86 1
^
(107) : note: previous definition is here
#define _M_IX86 600
^

While I didn't use -pedantic

@nlewycky
Copy link
Contributor

Reproduce with:
echo "#define FOO 2" | clang -x c -fsyntax-only -DFOO -

@lattner
Copy link
Collaborator

lattner commented Apr 11, 2010

The problem here is that some extension warnings default to on, and so there is no way to disable them. They should all have -W flags.

@lattner
Copy link
Collaborator

lattner commented Apr 12, 2010

I will fix this.

@lattner
Copy link
Collaborator

lattner commented Apr 12, 2010

Fixed in r101071

@llvmbot
Copy link
Member Author

llvmbot commented Nov 27, 2021

mentioned in issue llvm/llvm-bugzilla-archive#6815

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category
Projects
None yet
Development

No branches or pull requests

3 participants