-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Default cStandard is incorrectly c11 instead of gnu18 when the default compiler is gcc #5834
Comments
CRTSCTS
from termios.h
is squiggled with identifier "CRTSCTS" is undefined
but it can compile on gcc without any problems
Change your cStandard property to gnu11 to fix the issue
Let us know if you think there's a bug with the default cStandard not being set correctly (I think it should be gnu11 by default if we detect a gcc compiler by default). |
Yeah, I just reproed a bug where cStandard is being set to c11 by default instead of gnu11 (cppStandard is correctly gnu++14). |
The bug repros when the compiler reports |
Type: LanguageService
Describe the bug
CRTSCTS
fromtermios.h
is squiggled withidentifier "CRTSCTS" is undefined
but it can compile on gcc without any problemsSteps to reproduce
gcc -o test2 test2.c
and observe that the code compiles and run just fineCRTSCTS
is squiggled withidentifier "CRTSCTS" is undefined
but that code can compile in gcc just fineExpected behavior
CRTSCTS
is not squiggledLogs
Log Diagnostics: https://gist.github.com/minecraft2048/764f72423659df3c1c33c8b21c4136d0
Language server log: https://gist.github.com/minecraft2048/70006e0791459f875d40dc47a1876a6e
The text was updated successfully, but these errors were encountered: