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: > Hi, > > I running the latest 2.17rc. This version generates the getoptions_file_save() functions with a signed int i which results a lots of signed/unsigned warning. Please modify the corresponding .h_skel to use unsigned int. > Hi I checked this matter, and the code is for (i = 0; i < args_info->@opt_var@_given; ++i) which should not generate warnings, since the _given field is an int, and not an unsigned. I myself always compile the tests with -Wall so I should have received the warning too, which didn't happen... what warning do you get (in particular, which line of code generates the warning)? thanks in advance Lorenzo -- +-----------------------------------------------------+ | Lorenzo Bettini ICQ# lbetto, 16080134 | | PhD in Computer Science | | Dip. Sistemi e Informatica, Univ. di Firenze | | 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 | +-----------------------------------------------------+