Skip to content

Commit

Permalink
vcs-svn: remove spurious semicolons
Browse files Browse the repository at this point in the history
trp_gen is not a statement or function call, so it should not be
followed with a semicolon.  Noticed by gcc -pedantic.

 vcs-svn/repo_tree.c:41:81: warning: ISO C does not allow extra ';'
  outside of a function [-pedantic]

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jonathan Nieder authored and Junio C Hamano committed Mar 16, 2011
1 parent 276e017 commit 0631623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vcs-svn/repo_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static uint32_t mark;
static int repo_dirent_name_cmp(const void *a, const void *b);

/* Treap for directory entries */
trp_gen(static, dent_, struct repo_dirent, children, dent, repo_dirent_name_cmp);
trp_gen(static, dent_, struct repo_dirent, children, dent, repo_dirent_name_cmp)

uint32_t next_blob_mark(void)
{
Expand Down
2 changes: 1 addition & 1 deletion vcs-svn/string_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static int node_cmp(struct node *a, struct node *b)
}

/* Build a Treap from the node structure (a trp_node w/ offset) */
trp_gen(static, tree_, struct node, children, node, node_cmp);
trp_gen(static, tree_, struct node, children, node, node_cmp)

const char *pool_fetch(uint32_t entry)
{
Expand Down

0 comments on commit 0631623

Please sign in to comment.