The compiler can't warn here, as tagE() is a varadic function, so default argument promotion should take place, which should implicitly cast that enum (which is a signed char actually) into an int, and the %d expects an int anyway? What wrong results are you getting? You should get a number between -1 (NO_BRACKET) and 3 (LINE), see mscore.h, line 145. Would using %c instead of the 1st %d in the format string help? Or %hh, maybe?
-----Original Message----- From: ABL [mailto:antonio.lo...@alice.it] Sent: Friday, April 24, 2015 6:10 PM To: mscore-developer@lists.sourceforge.net Subject: Re: [Mscore-developer] running tests on mac via xcode I nailed the problem I am facing with the tests to line 485 of staff.cpp: xml.tagE("bracket type=\"%d\" span=\"%d\"", i._bracket, i._bracketSpan); it is giving the wrong result when casting the BracketType i._bracket to integer. I am not receiving warning from the compiler, but if I use a qDebug to show this QString the compiler issues a warning about the casting from the enum class type into int. Is this a bug? (Here my weak knowledge of c++ shows its strength) ...Sorry for the off-topic. Ciao, ABL -- View this message in context: http://dev-list.musescore.org/running-tests-on-mac-via-xcode-tp7579199p75792 07.html Sent from the MuseScore Developer mailing list archive at Nabble.com. ---------------------------------------------------------------------------- -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Mscore-developer mailing list Mscore-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mscore-developer ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Mscore-developer mailing list Mscore-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mscore-developer