GithubHelp home page GithubHelp logo

Comments (3)

k10231 avatar k10231 commented on May 30, 2024 1

Yes, I would not have noticed this error if I hadn't been using my old pc, which has v9.3.0 installed.
and i used gcc -o editor src/editor.c to compile the source

from jate.

Arsenic-ATG avatar Arsenic-ATG commented on May 30, 2024

Thanks for pointing this out.
weirdly enough, my compiler fails to catch this ( even with -Wall and -pedantic )

May I know what compiler command did you gave to compile the source ?

Also what version of gcc are you using ? (gcc -v)

from jate.

Arsenic-ATG avatar Arsenic-ATG commented on May 30, 2024

looks like you are using gcc 10.x ( or older ), because GCC dropped this after the release of GCC 11 ( In preparation of C2x ).

According to the Release Notes

Several new features from the upcoming C2X revision of the ISO C standard are supported with -std=c2x and -std=gnu2x. Some of these features are also supported as extensions when compiling for older language versions. In addition to the features listed, some features previously supported as extensions and now added to the C standard are enabled by default in C2X mode and not diagnosed with -std=c2x -Wpedantic.
.....

  • Labels may appear before declarations and at the end of a compound statement.

Although it should be still be caught, and my compiler should have given out a warning about the same ( given the fact that I have enabled -pedantic in the command ). I am still investigating to why it failed to do so.

But as the project targets C99, it should be fixed.

from jate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.