Le 04/11/2018 à 09:42, Kornel Benko a écrit :
Am Sonntag, 4. November 2018 10:07:19 CET schrieb Stephan Witt
<st.w...@gmx.net>:
Hi Kornel,
Apple clang has spotted a problem probably introduced in change 74c849d651.
====
src/lyxfind.cpp:1672:10: warning: variable 'nextKeyIdx' is used uninitialized
whenever switch case is taken
[-Wsometimes-uninitialized]
case KeyInfo::isMain: {
^~~~~~~~~~~~~~~
src/lyxfind.cpp:1695:10: note: uninitialized use occurs here
return(nextKeyIdx);
^~~~~~~~~~
While you are at it, this form of return is not really standard. The
normal form is
return nextKeyIdx;
JMarc