Re: use unsigned iterator i in generated source

Lorenzo Bettini <[email protected]>
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
Gyozo, PAPP (VBuster) wrote:
>> so the warning doesn't show up?
> 
> No, with the original tarball. This was the root of evil:
> 
> @@ -143,7 +141,7 @@
>  @parser_name@_file_save(const char *filename, struct @args_info@ *args_info)
>  {
>    FILE *outfile;
> -  int i = 0;
> +  unsigned int i = 0;
>  
>    outfile = fopen(filename, "w");
>  
> Quite obvious. Once again, sorry to blame.

no problem: "better be safe than sorry" :-D

thanks
	Lorenzo

-- 
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD in Computer Science                            |
|  Dip. Sistemi e Informatica, Univ. di Firenze       |
|  Tel +39 055 4237460, Fax +39 055 4237437           |
|  Florence - Italy        (GNU/Linux User # 158233)  |
|  Home Page        : http://www.lorenzobettini.it    |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.purplesucker.com Deep Purple Cover Band |
|  http://www.gnu.org/software/src-highlite           |
|  http://www.gnu.org/software/gengetopt              |
|  http://www.lorenzobettini.it/software/gengen       |
|  http://www.lorenzobettini.it/software/doublecpp    |
+-----------------------------------------------------+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.