Re: Suspicious warning for fake int in PreviewLoader.cpp

2022-12-15 Thread Stephan Witt
Am 16.12.2022 um 00:48 schrieb Richard Kimberly Heck : > > On 12/15/22 17:02, Stephan Witt wrote: >> Hi all, >> >> I’m seeing this warning with more modern Apple compilers for lyx-2.3.x: >> >> lyx-2.3.x/src/graphics/PreviewLoader.cpp:730:28: warning: result of '2^20' >> is 22; did you mean '1 <

Re: Suspicious warning for fake int in PreviewLoader.cpp

2022-12-15 Thread Richard Kimberly Heck
On 12/15/22 17:02, Stephan Witt wrote: Hi all, I’m seeing this warning with more modern Apple compilers for lyx-2.3.x: lyx-2.3.x/src/graphics/PreviewLoader.cpp:730:28: warning: result of '2^20' is 22; did you mean '1 << 20' (1048576)? [-Wxor-used-as-pow] static atomic_int fake

Suspicious warning for fake int in PreviewLoader.cpp

2022-12-15 Thread Stephan Witt
Hi all, I’m seeing this warning with more modern Apple compilers for lyx-2.3.x: lyx-2.3.x/src/graphics/PreviewLoader.cpp:730:28: warning: result of '2^20' is 22; did you mean '1 << 20' (1048576)? [-Wxor-used-as-pow] static atomic_int fake((2^20) + 1);