-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
gcc complains "pragma once" in *.cpp file #80
Comments
@bigcat26 can you make a PR to fix it? |
got it, working on this |
find . -name '*.cpp' |xargs sed -i -z -e "s/#pragma once\n\n//"
# commit & push |
I love magic. |
@bigcat26 so just add |
MS VC++ requires
The above sets off the warnings. But, under development environment we do need warning logs. Under such cases, we build using
|
|
@bigcat26 https://docs.microsoft.com/en-us/cpp/preprocessor/once?view=msvc-160
|
It has an effect similar to the include guard idiom, which uses preprocessor macro definitions to prevent multiple inclusions of the contents of the file. |
I don't think there is any noticeable compile time performance difference between |
🎉 This issue has been resolved in version 1.11.6 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Good work! |
gcc version
compiler output:
The text was updated successfully, but these errors were encountered: