* [committed] avoid pedantic warning in C++ 98 mode: comma at end of enumerator list
@ 2020-02-06 0:29 Martin Sebor
2020-02-07 22:29 ` Joseph Myers
0 siblings, 1 reply; 2+ messages in thread
From: Martin Sebor @ 2020-02-06 0:29 UTC (permalink / raw)
To: gcc-patches
I removed the trailing comma and (after a few false starts) managed
to push the change in commit
r10-6466-g297aa668293d55ffe100d810e92fbe592f262557.
I got the error below for my first few attempts. The message had
the expected format so I wasn't sure what the problem was until
I removed the "[-Wpedantic]" part at the end. Was it looking for
a bug id and getting confused?
Martin
remote: *** Invalid revision history for commit
1475ba69fd77b6c22b10e76ad94fa487d931dabd:
remote: *** The first line should be the subject of the commit,
remote: *** followed by an empty line.
remote: ***
remote: *** Below are the first few lines of the revision history:
remote: *** | Remove trailing comma to avoid pedantic warning in C++ 98
mode:
remote: *** | comma at end of enumerator list [-Wpedantic]
remote: ***
remote: *** Please amend the commit's revision history and try again.
remote: error: hook declined to update refs/heads/master
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [committed] avoid pedantic warning in C++ 98 mode: comma at end of enumerator list
2020-02-06 0:29 [committed] avoid pedantic warning in C++ 98 mode: comma at end of enumerator list Martin Sebor
@ 2020-02-07 22:29 ` Joseph Myers
0 siblings, 0 replies; 2+ messages in thread
From: Joseph Myers @ 2020-02-07 22:29 UTC (permalink / raw)
To: Martin Sebor; +Cc: gcc-patches
On Wed, 5 Feb 2020, Martin Sebor wrote:
> I removed the trailing comma and (after a few false starts) managed
> to push the change in commit
> r10-6466-g297aa668293d55ffe100d810e92fbe592f262557.
>
> I got the error below for my first few attempts. The message had
> the expected format so I wasn't sure what the problem was until
> I removed the "[-Wpedantic]" part at the end. Was it looking for
> a bug id and getting confused?
No, this error looks like there not being a blank line after the first
line of the original commit message (a single-line commit message like you
ended up with is OK for simple commits where a single line is sufficient
description, but if there's more then one line there must be a blank line
after the first line, which should act as a self-contained summary for
tools such as "git log --oneline" to work well).
> remote: *** Below are the first few lines of the revision history:
> remote: *** | Remove trailing comma to avoid pedantic warning in C++ 98 mode:
> remote: *** | comma at end of enumerator list [-Wpedantic]
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-07 22:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-06 0:29 [committed] avoid pedantic warning in C++ 98 mode: comma at end of enumerator list Martin Sebor
2020-02-07 22:29 ` Joseph Myers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).