From: Warren Young Date: July 11 2007 6:13pm Subject: Re: gcc won't compile 2.3.1 with -Wall -Wextra -pedantic List-Archive: http://lists.mysql.com/plusplus/6763 Message-Id: <46951DBD.4030905@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Andrew Sayers wrote: > A stray comma means gcc won't compile 2.3.1 if you turn on the above > flags (presumably it's just -pedantic that's complaining, but I'm not > going to do a long series of tests for a typo). Wow, "pedantic" is right. I looked in the standard, and it is indeed not legal. But, every compiler I've ever used understands it, and the practice is widely recommended, as it helps prevent copy-paste errors. I'm going to have to meditate on this one. The cure looks worse than the disease.