foo-yc20 icon indicating copy to clipboard operation
foo-yc20 copied to clipboard

Clang warnings

Open yurivict opened this issue 7 years ago • 0 comments

Version 1.3.0 has these warnings

src/lv2.cpp:91:11: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
        if (port >= 0 && port < 2) {
            ~~~~ ^  ~
include/faust-dsp.h:10:7: warning: private field 'fStopped' is not used [-Wunused-private-field]
        bool    fStopped;
                ^

The current code also has some errors, ex.:

In file included from src/faust-dsp-standalone.cpp:43:
src/../gen/yc20-dsp-standalone.cpp:668:14: error: 'static' member function 'metadata' overrides a virtual function in a base class
        static void metadata(Meta* m)   { 
                    ^

Please make sure your project is compiled by clang without errors/warning.

Thanks!

yurivict avatar Aug 18 '17 03:08 yurivict