From: Junio C Hamano <junkio@cox.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 1/3] read-trees: refactor the unpack_trees() part
Date: Sun, 30 Jul 2006 14:36:40 -0700 [thread overview]
Message-ID: <7v4pwydbbr.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.63.0607302024090.29667@wbgn013.biozentrum.uni-wuerzburg.de> (Johannes Schindelin's message of "Sun, 30 Jul 2006 20:25:18 +0200 (CEST)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> diff --git a/unpack-trees.h b/unpack-trees.h
> new file mode 100644
> index 0000000..babfcd7
> --- /dev/null
> +++ b/unpack-trees.h
> @@ -0,0 +1,30 @@
> +#ifndef UNPACK_TREES_H
> +#define UNPACK_TREES_H
>...
> +struct unpack_trees_options {
> + int reset;
> + int merge;
> + int update;
> + int index_only;
> + int nontrivial_merge;
> + int trivial_merges_only;
> + int verbose_update;
> + int aggressive;
> + const char *prefix;
> + merge_fn_t fn;
> +
> + int head_idx;
> + int merge_size;
> +
> + struct cache_entry df_conflict_entry;
> +};
Hmmmm.....
gcc -o unpack-trees.o -c -O2 -Werror -ansi -pedantic -std=c99 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wall -Wdeclaration-after-statement -g -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRLCPY unpack-trees.c
cc1: warnings being treated as errors
In file included from unpack-trees.c:7:
unpack-trees.h:24: warning: invalid use of structure with flexible array member
make: *** [unpack-trees.o] Error 1
next prev parent reply other threads:[~2006-07-30 21:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-30 18:25 [PATCH 1/3] read-trees: refactor the unpack_trees() part Johannes Schindelin
2006-07-30 21:36 ` Junio C Hamano [this message]
2006-07-31 0:14 ` Johannes Schindelin
2006-07-31 0:48 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v4pwydbbr.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox