FLTK logo

Re: [fltk/fltk] VS2017 warnings when building fltk 1.4.x (58296c373a79) (#109)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] VS2017 warnings when building fltk 1.4.x (58296c373a79) (#109) Albrecht Schlosser Feb 15, 2021  
 

Hmm, looks as if your changes introduced a warning in the macOS build:

[ 62%] Building CXX object test/CMakeFiles/fractals.dir/fractals.cxx.o
[ 62%] Building CXX object test/CMakeFiles/fractals.dir/fracviewer.cxx.o
/Users/runner/work/fltk/fltk/test/fracviewer.cxx:250:51: warning: operator '?:' has lower precedence than '*'; '*' will be evaluated first [-Wparentheses]
          AzSpin = fabs(ElSpin) * (AzSpin > 0.0f) ? 1.0f : -1.0f;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/runner/work/fltk/fltk/test/fracviewer.cxx:250:51: note: place parentheses around the '*' _expression_ to silence this warning
          AzSpin = fabs(ElSpin) * (AzSpin > 0.0f) ? 1.0f : -1.0f;
                                                  ^
                   (                             )
/Users/runner/work/fltk/fltk/test/fracviewer.cxx:250:51: note: place parentheses around the '?:' _expression_ to evaluate it first
          AzSpin = fabs(ElSpin) * (AzSpin > 0.0f) ? 1.0f : -1.0f;
                                                  ^
                                  (                             )
1 warning generated.
[ 62%] Linking CXX executable ../bin/test/fractals.app/Contents/MacOS/fractals

The previous build log didn't have such a warning.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.