"Christian Stimming (mobil)" <stimm...@tuhh.de> writes: > The macro you mentioned is for printf but not scanf - which is > different. If glib has some macro for scanf, sure we should use it.
Yes, but these warnings are just PWARN messages, which is a printf.. -derek > Christian > -- > Sent from mobile. > > > > Derek Atkins <warl...@mit.edu> schrieb: > > Geert Janssens <janssens-ge...@telenet.be> writes: > On maandag 11 april > 2011, Nitish Kumar wrote: >> I am sorry for posting in non standrard ways, I > am learning things about >> mailing list. >> >> Here are the last few lines: > >> >> cc1.exe: warnings being treated as errors >> > ../../../../repos/src/libqof/qof/guid.c: In function 'init_from_file': >> > ../../../../repos/src/libqof/qof/guid.c:243:5: error: unknown conversion >> > type ch >> aracter 'l' in format >> > ../../../../repos/src/libqof/qof/guid.c:243:5: error: format '%s' expects >> > type ' >> char *', but argument 5 has type 'long long unsigned int' >> > ../../../../repos/src/libqof/qof/guid.c:243:5: error: too many arguments >> > for for >> mat >> ../../../../repos/src/libqof/qof/guid.c: In function > 'guid_init': >> ../../../../repos/src/libqof/qof/guid.c:510:5: error: unknown > conversion >> type ch >> aracter 'l' in format >> > ../../../../repos/src/libqof/qof/guid.c:510:5: error: too many arguments >> > for for >> mat >> > ./../../../repos/src/libqof/qof/guid.c:513:9: error: unknown conversion >> > type ch >> aracter 'l' in format >> > ../../../../repos/src/libqof/qof/guid.c:513:9: error: too many arguments >> > for for >> mat > > This is a bit weird: gcc fails because it doesn't seem to > know the %llu format > specifier. This particular problem was fixed by Phil > more than a year ago [1]. > You can check in the code that the lines causing > an error are inside > preprocessor conditionals #ifdef HAVE_SCANF_LLD to > explicitly check if this > specifier is supported. So it seems this check > doesn't work properly in your > case. Is there any reason we're not using > G_UINT64_FORMAT here? > What version of Windows are you using, and is it 32 > bit or 64 bit ? > > Geert > > [1] Fixed in this changeset: > http://svn.gnucash.org/trac/changeset/18858 -derek -- Derek Atkins, SB '93 > MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information > Processing Board (SIPB) URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NW H > warl...@mit.edu PGP key available_____________________________________________ > gnucash-devel mailing list gnucash-devel@gnucash.org > https://lists.gnucash.org/mailman/listinfo/gnucash-devel > > _______________________________________________ > gnucash-devel mailing list > gnucash-devel@gnucash.org > https://lists.gnucash.org/mailman/listinfo/gnucash-devel > > -- Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH warl...@mit.edu PGP key available _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel