Re: [Mscore-developer] Heads up: an array of structs initialisation in style.cpp

2017-01-14 Thread rumpu-jussi
It seems that with this issue we are deep in the territory of clang vs gcc implementations of global variable initialisation especially regarding an array of structs. That goes way beyond my understanding. However, I made a quick'n'dirty workaround: 1. styleTypes is now declared as such: 2. MSty

Re: [Mscore-developer] Heads up: an array of structs initialisation in style.cpp

2017-01-14 Thread Lasconic
Hi, This part of the code is in flux. Werner is working on it. To make MuseScore starts, I just commented out precomputevalues() in MStyle constructor. lasconic 2017-01-14 11:37 GMT+01:00 rumpu-jussi : > Sorry, I got too carried away. None of the values in the styleTypes-array > are > set. The

Re: [Mscore-developer] Heads up: an array of structs initialisation in style.cpp

2017-01-14 Thread rumpu-jussi
Sorry, I got too carried away. None of the values in the styleTypes-array are set. The array contains X amount of empty structs... -- View this message in context: http://dev-list.musescore.org/Heads-up-an-array-of-structs-initialisation-in-style-cpp-tp7580121p7580123.html Sent from the MuseSco

Re: [Mscore-developer] Heads up: an array of structs initialisation in style.cpp

2017-01-14 Thread Joachim Schmitz
Score/commit/0b1aea952f9f870ef79f39899f8ec1 2cc2b60fa6, as per 'git blame'. Bye, Jojo -Original Message- From: rumpu-jussi [mailto:kon...@gmail.com] Sent: Saturday, January 14, 2017 11:25 AM To: mscore-developer@lists.sourceforge.net Subject: [Mscore-developer] Heads up: an a

[Mscore-developer] Heads up: an array of structs initialisation in style.cpp

2017-01-14 Thread rumpu-jussi
Hi, I just git pulled the most recent code to my Mac and compiled the app. The result: MuseScore crashes on startup. After poking around the code, I found the culprit: the styleTypes-array initialisation in style.cpp style.cpp:50 static const StyleType styleTypes[] { { StyleIdx::staffUpperB