Home > Gcc Error > Gcc Error Comma At End Of Enumerator List

Gcc Error Comma At End Of Enumerator List

You signed out in another tab or window. Patch incoming to fix the enums.. With the gcc compiler the following is valid: enum DAYS {MONDAY, TUESDAY, }day1; gcc does not even *warn* about the extra comma after "TUESDAY". 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? navigate here

Register Lostyourlogin? We recommend upgrading to the latest Safari, Google Chrome, or Firefox. Comment 5 Landry Breuil (:gaston) 2012-01-28 06:15:23 PST Thanks ! 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.

No, thanks Issue889 Issues Show Unassigned Show All Search Login Remember me? 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 I found references which say that this is valid in C99 standard but invalid in C89.

Terms Privacy Security Status Help You can't perform that action at this time. What (combination of) licenses is popular for public/shared proprietary software (“Feel free to contribute, but only we can make commercial use”)? Thank you! Submit the patch to ffmpeg as well in the hopes that they'll adopt it, but either way you're covered even if they don't accept it.

Join them; it only takes a minute: Sign up How to ignore gcc compiler pedantic errors in external library headers? If you use gcc, consider using it in an appropriate mode, i.e. Note than running update.sh now discards some of the bustage commits that were done on top of bug 716415.. Re: [Samtools-devel] compiler warning: comma at end of enumerator list From: Peter Johansson - 2015-03-12 01:21:53 Hi John, On 03/11/2015 07:57 PM, John Marshall wrote: > We could remove such

Format For Printing -XML -JSON - Clone This Bug -Top of page Home | New | Browse | Search | [help] | Reports | Product Dashboard Privacy Notice | Legal Terms 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 Due to an oversight, there were illegal in C90, however, and C++ adopted the C90 definition of enums, so they're illegal in C++03. Your code isn't legal C++, hence the error. –Glen Jun 17 '09 at 12:22 add a comment| up vote 2 down vote In C++ it is not yet possible to disable

Yes, you are right. https://bytes.com/topic/c/answers/805031-trailing-commas-end-enumeration 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 fix is simply like this: [email protected] tatsuhiro-t commented Sep 3, 2013 Thank you. So as a workaround, you could compile without -pedantic or use -isystem path/to/htslib instead of -I path/to/htslib.

Please don't fill out this field. http://imagextension.com/gcc-error/gcc-compiler-error-list.php Jan Jun 27 '08 #7 This discussion thread is closed Start new discussion Replies have been disabled for this discussion. share|improve this answer answered Oct 5 '08 at 19:40 friol 5,18232966 add a comment| up vote -2 down vote You can't tell GCC to be pedantic about some headers and not It's quick & easy.

Why did my electrician put metal plates wherever the stud is drilled through? gcc enums share|improve this question edited Dec 9 '11 at 17:59 Joel Coehoorn 248k92440661 asked Jun 16 '09 at 16:01 Guillaume 1,13121316 add a comment| 2 Answers 2 active oldest votes History Date User Action Args 2008-03-1107:58:53wernersetstatus: unread -> resolvedmessages: + msg2375 2008-03-0616:07:34JonathanLennoxcreate This is the mail archive of the [email protected] mailing list for the GCC project. http://imagextension.com/gcc-error/gcc-error-code-list.php The question is: are those hanging commas ok or not?

It does if you use "-std=c89": " warning: comma at end of enumerator list" I found references which say that this is valid in C99 standard but invalid in C89. 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 trailing commas won't be legal until the new C++ standard is published.

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

Like this: enum Abc { ENUM_ONE, ENUM_TWO ENUM_THREE, #ifdef HAVE_SOMETHING ENUM_FOUR, #endif ENUM_FIVE, }; I believe this isn't very good to give away such a thing, because for example gcc with In the FreeBSD 5.5 system version of gcc, this prints a warning (or an error, with g++) if the -pedantic flag is passed: $ gcc -pedantic -I /usr/local/include -c foo.c In Christian Nov 15 '05 #4 P: n/a Sriram Rajagopalan Thanks for all of your comments. How to draw a path with coordinates defined by f(x) What do I do when two squares are equally valid?

Terms Privacy Opt Out Choices Advertise Get latest updates about Open Source Projects, Conferences and News. Help README Roundup docs Title libgcrypt.h: comma at end of enumeration lists Priority bug Status resolved Category libgcrypt Due Date Version 1.4.0 ExtLink (go) Superseder Nosy List JonathanLennox Assigned To Topics The default for gcc gnu99; to get c89, c99, or gnu89 you have to tell it so. weblink Create a wire coil Is there a Korean word for 'Syllable Block'?

asked 8 years ago viewed 6842 times active 4 years ago Related 4Suppressing “extra ';'” error in GCC when -pedantic is on98GCC compile error with >2 GB of code5gcc compiler not It certainly change the commit revision. Would you please remove "comma at end of enumerator list" in header file 'hts.h'. 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

Regards, Sriram. 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 In the meantime, however, while I might consider allowing them for internal use, I certainly wouldn't deliver any code to outside the firm which uses them. -- James Kanze (GABI Software) Maybe I can cherry pick or something.

Please help me confirm on this. enum-specifier syntax in c89 : ------------------------------- enum identifieropt { enumerator-list } enum identifier enum-specifier syntax in c99 : -------------------------------- enum identifieropt { enumerator-list } enum identifieropt { enumerator-list , } enum Post your question and get tips & solutions from a community of 418,553 IT Pros & Developers. Nov 15 '05 #6 This discussion thread is closed Start new discussion Replies have been disabled for this discussion.

current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. 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 I found references which say that this is valid in C99 standard but invalid in C89. http://www.nongnu.org/hcb/#enum-specifier http://www.open-std.org/jtc1/sc22/wg...fects.html#518 No, they're not.

Word with the largest number of different phonetic vowel sounds Implementation of a generic List Does a survey require an ethical approval? Please note how my new pedwarn breaks the pattern in maybe_warn_cpp0x. Browse other questions tagged gcc compiler-construction compiler-errors or ask your own question. The library isn't mine, and the header file is generated, so this isn't particularly easy for me to make an edit.

Nov 15 '05 #3 P: n/a Christian Kandeler Sriram Rajagopalan wrote: Is the extra comma at the end of an enumerator-list valid according to the C standards? Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 138 Star 1,425 Fork 248 nghttp2/nghttp2 Code Issues 132 Pull requests 0 Projects more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

© 2017 imagextension.com