gcc error comma at end of enumerator list Villa Ridge Missouri

Address 314 Frank St, Washington, MO 63090
Phone (636) 667-3588
Website Link http://www.techandtutorcomputers.com
Hours

gcc error comma at end of enumerator list Villa Ridge, Missouri

I also include the Backus-Naur form of C syntax for enum: ::= void | char | short | int | long | float | double | signed | unsigned | What would be the atomic no. Please note how my new pedwarn breaks the pattern in maybe_warn_cpp0x. Attached is a variation where maybe_warn_cpp0x is used.

Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Jan Jun 27 '08 #6 P: n/a jan.sneeuwman On Apr 21, 1:40 pm, James Kanze

How much interest should I pay on a loan from a friend? And the customer might be disappointed (in case he'll use "-pedantic"), and disappointed justly. I found references which say that this is valid in C99 standard but invalid in C89. The library isn't mine, and the header file is generated, so this isn't particularly easy for me to make an edit.

share|improve this answer answered Oct 5 '08 at 19:49 Nik Reiman 22.4k1977141 great! Why did my electrician put metal plates wherever the stud is drilled through? I get it. So in the future, when GCC is corrected, -std=c++11 should disable it. -std=c99 only works in C, not C++ (as in the question).

To get this warning I guess you are compiling with -pedantic, in which case aren't you getting several other annoying warnings from hts.h too? Please don't fill out this field. Ross F. more hot questions question feed lang-c about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

The C++ Standard (7.2) forbids such declaration: enum-specifier: enum identifier { enumerator-list } enumerator-list: enumerator-definition enumerator-list , enumerator-definition So it's not a question of style; it's illegal. In C code, "gcc -std=c99 -pedantic" doesn't complain. Nov 15 '05 #1 Post Reply Share this Question 5 Replies P: n/a Krishanu Debnath Sriram Rajagopalan wrote: Hi, Is the extra comma at the end of an enumerator-list valid according The library isn't mine, and the header file is generated, so this isn't particularly easy for me to make an edit.

Please help me confirm on this. It certainly change the commit revision. Sign up for the SourceForge newsletter: I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. Please help me confirm on this.

Or if you install htslib in a standard place, you won't need -I/-isystem at all and this warning should disappear even with -pedantic. Thanks. To get this warning I guess you are compiling with -pedantic, in which case aren't you getting several other annoying warnings from hts.h too? msg2369 (view) Author: JonathanLennox Date: 2008-03-06.16:07:34 In gcrypt.h from version 1.4.0 of libgcrypt, the gcry_ac_em_t and gcry_ac_scheme_t enumerations have a comma at the end of their enumeration lists.

How to overcome “unknown builtin” error message1Why am I getting an error with gcc but not with g++ in Linux0Compile error gcc -lpthread position0Ignoring GCC “error: braces around scalar initializer for You seem to have CSS turned off. No warning when "-std=99" is used. That's my problem... –Guillaume Jun 17 '09 at 7:35 2 if it's a .c file then GCC uses a C compiler.

Nov 15 '05 #6 This discussion thread is closed Start new discussion Replies have been disabled for this discussion. For more details see Persona Deprecated. Thanks for the pointers. Anyway, GCC (including 4.4.7) emits this warning only outside system headers when -pedantic is on.

Note than running update.sh now discards some of the bustage commits that were done on top of bug 716415.. Make them warnings3How to Build Libgcc of GCC compiler4The difference between -pedantic-errors and -Werror=pedantic in gcc Hot Network Questions How to show hidden files in Nautilus 3.20.3 Ubuntu 16.10? while C99 (6.7.2.2) clearly allows: ... What (combination of) licenses is popular for public/shared proprietary software (“Feel free to contribute, but only we can make commercial use”)?

Shouldn't be that hard doing it this way. Which means that they are OK in C99 code only. -- Best regards, Andrey Tarasevich Jun 27 '08 #2 P: n/a Ross A. This was referenced Mar 16, 2015 Closed h2load crash #185 Closed segfault with nghttpx #234 Closed when server is trying to respond with multiple threads, server is crashing #395 Open res.on_close Messages msg2375 (view) Author: werner Date: 2008-03-11.07:58:51 Fixed in my working copy.

That answer should have been accepted! –Johannes Weiß Jul 1 '11 at 13:58 add a comment| up vote 1 down vote I don't know of any way to tell gcc to Note that i've sneaked a maybe-unrelated chunk at the end of the patch for skia/src/core/SkMatrix.cpp which fixes a "error: extra ;" breakage. Please don't fill out this field. Filter columns basing on the value of other column What kind of distribution is this?

But I guess public headers should be valid whatever-extern-"C" is too... –alex strange Apr 28 '09 at 1:00 add a comment| Your Answer draft saved draft discarded Sign up or Please don't fill out this field. I also include the Backus-Naur form of C syntax for enum: ::= void | char | short | int | long | float | double | signed | unsigned | In file included from /home/peterJo/local/htslib-1.2.1/include/htslib/sam.h:30, from prog.cc:27: /home/peterJo/local/htslib-1.2.1/include/htslib/hts.h:140: warning: comma at end of enumerator list /home/peterJo/local/htslib-1.2.1/include/htslib/hts.h:162: warning: comma at end of enumerator list Cheers, Peter Thread view [Samtools-devel] compiler warning: comma

Finlayson Jan Sneeuwman wrote: Hello, I am working on a library in C++, and the library goes with a header file with a trailing comma at the end of some enumeration. Reload to refresh your session. share|improve this answer edited Nov 3 '11 at 23:28 sehe 207k24257351 answered Oct 5 '08 at 19:53 Mike F 9 This doesn't actually answer the question. –Nick Mar 19 '09 share|improve this answer answered Dec 18 '12 at 12:36 StellarVortex 408317 It seems to have been fixed now: gcc.gnu.org/bugzilla/show_bug.cgi?id=51888 –StellarVortex Feb 6 at 20:49 add a comment| Your Answer

This is getting perilously near being off-topic in clc. One could of course imagine changing the message to something like "comma at end of enumerator list is not a warning " \ "with -std=c++0x or -std=gnu++0x" but it still stands If you want gcc to give c89-specific warnings, use the right compilation options. Already have an account?

Please help me confirm on this. IQ Puzzle with no pattern Why (in universe) are blade runners called blade runners?