Comments (2)
Micro does not include a C++ compiler, the warning is coming from a linter or a language server you have set up. You should open the issue in their repository.
from micro.
I think @teodor256 did not "set up" anything. The issue is with micro's built-in linter plugin. It uses these commands for checking C or C++ files:
makeLinter("gcc", "c", "gcc", {"-fsyntax-only", "-Wall", "-Wextra", "%f"}, "%f:%l:%c:.+: %m")
makeLinter("g++", "c++", "gcc", {"-fsyntax-only","-std=c++14", "-Wall", "-Wextra", "%f"}, "%f:%l:%c:.+: %m")
So the problem is with gcc: it always throws #pragma once in main file
if a file containing #pragma once
is passed to the gcc command line, i.e. it assumes that header files should never be passed to it on the command line. Which is reasonable in normal case when compiling, but it also happens when gcc is run with -fsyntax-only
. So gcc with -fsyntax-only
cannot be quite reliably used for checking syntax of header files. And gcc doesn't even provide an explicit option to suppress this warning.
I see it is reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808. See in particular comment https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808#c11.
from micro.
Related Issues (20)
- Feature: Go to previous/next block of text HOT 2
- New release needed ? HOT 10
- Quick install command from website not working on Linux HOT 11
- brew install micro --HEAD stopped working HOT 7
- Crash on a custom syntax file with a Swift shebang HOT 6
- command-edit in scripts
- [Feature request] Separate highlighting and color schemes in Micro HOT 1
- Color scheme issue HOT 9
- create my own type of file, and highlight different lines HOT 2
- Color scheme not correct HOT 3
- TERM=foot-direct doesn't work with micro 2.0.14 HOT 1
- Bump Golang version HOT 1
- GLIBC Errors in 2.0.14-rc1 and 2.0.14 HOT 17
- [Feature request] Tooltip support HOT 7
- Consider supporting other languages for plugin development? HOT 1
- "no clipboard received from terminal" in tmux; OSC52 works in tmux and outside of micro
- how to read file in to existing buffer HOT 1
- Garbled text after opening file on MSYS2+mintty with Ctrl-O
- Inconsistent behavior of cursor keys depending on whether selection mode is active (newlines) after upgrading to 2.0.14 HOT 3
- Cut Line does not work correctly HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micro.