faust
faust copied to clipboard
"warning" when running "make"
These are the warning that i got from my terminal. I'm using Ubuntu 20.
/home/jake/Music/faust/compiler/generator/Text.cpp: In function ‘std::string TAux(double)’:
/home/jake/Music/faust/compiler/generator/Text.cpp:260:31: warning: ‘%.*Lg’ directive output may be truncated writing between 1 and 4934 bytes into a region of size 512 [-Wformat-truncation=]
260 | snprintf(c, 512, "%.*Lg", p++, q);
| ^~~~~
/home/jake/Music/faust/compiler/generator/Text.cpp:260:30: note: assuming directive output of 4933 bytes
260 | snprintf(c, 512, "%.*Lg", p++, q);
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from /home/jake/Music/faust/compiler/generator/Text.cpp:22:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 2 and 4935 bytes into a destination of size 512
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jake/Music/faust/compiler/generator/Text.cpp: In function ‘std::string TAux(long double)’:
/home/jake/Music/faust/compiler/generator/Text.cpp:311:31: warning: ‘%.*Lg’ directive output may be truncated writing between 1 and 4934 bytes into a region of size 512 [-Wformat-truncation=]
311 | snprintf(c, 512, "%.*Lg", p++, n);
| ^~~~~
/home/jake/Music/faust/compiler/generator/Text.cpp:311:30: note: assuming directive output of 4933 bytes
311 | snprintf(c, 512, "%.*Lg", p++, n);
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from /home/jake/Music/faust/compiler/generator/Text.cpp:22:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 2 and 4935 bytes into a destination of size 512
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jake/Music/faust/compiler/generator/Text.cpp:306:31: warning: ‘%.*Lg’ directive output may be truncated writing between 1 and 4934 bytes into a region of size 512 [-Wformat-truncation=]
306 | snprintf(c, 512, "%.*Lg", p++, q);
| ^~~~~
/home/jake/Music/faust/compiler/generator/Text.cpp:306:30: note: assuming directive output of 4933 bytes
306 | snprintf(c, 512, "%.*Lg", p++, q);
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from /home/jake/Music/faust/compiler/generator/Text.cpp:22:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 2 and 4935 bytes into a destination of size 512
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jake/Music/faust/compiler/generator/Text.cpp:300:31: warning: ‘%.*Lg’ directive output may be truncated writing between 1 and 4934 bytes into a region of size 512 [-Wformat-truncation=]
300 | snprintf(c, 512, "%.*Lg", p++, n);
| ^~~~~
/home/jake/Music/faust/compiler/generator/Text.cpp:300:30: note: assuming directive output of 4933 bytes
300 | snprintf(c, 512, "%.*Lg", p++, n);
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from /home/jake/Music/faust/compiler/generator/Text.cpp:22:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 2 and 4935 bytes into a destination of size 512
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 16%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/code_container.cpp.o
[ 16%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/compile.cpp.o
[ 18%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/compile_scal.cpp.o
/home/jake/Music/faust/compiler/generator/compile_scal.cpp: In member function ‘virtual void ScalarCompiler::compileMultiSignal(Tree)’:
/home/jake/Music/faust/compiler/generator/compile_scal.cpp:482:18: warning: unused variable ‘pnum’ [-Wunused-variable]
482 | int pnum;
| ^~~~
/home/jake/Music/faust/compiler/generator/compile_scal.cpp:483:18: warning: unused variable ‘rg’ [-Wunused-variable]
483 | Tree rg;
| ^~
/home/jake/Music/faust/compiler/generator/compile_scal.cpp:514:13: warning: unused variable ‘lSTEP’ [-Wunused-variable]
514 | int lSTEP = gGlobal->gSTEP; // conveninient for debug
| ^~~~~
/home/jake/Music/faust/compiler/generator/compile_scal.cpp: In member function ‘virtual void ScalarCompiler::compileSingleSignal(Tree)’:
/home/jake/Music/faust/compiler/generator/compile_scal.cpp:575:13: warning: unused variable ‘lSTEP’ [-Wunused-variable]
575 | int lSTEP = gGlobal->gSTEP; // convenient for debug
| ^~~~~
/home/jake/Music/faust/compiler/generator/compile_scal.cpp: In member function ‘std::string ScalarCompiler::generateRDTbl(Tree, Tree, Tree)’:
/home/jake/Music/faust/compiler/generator/compile_scal.cpp:1291:18: warning: unused variable ‘o’ [-Wunused-variable]
1291 | Occurrences* o = fOccMarkup->retrieve(sig);
| ^
/home/jake/Music/faust/compiler/generator/compile_scal.cpp: In member function ‘virtual std::string ScalarCompiler::generateDelayLine(DelayType, const string&, const string&, int, int, bool, const string&, const string&)’:
/home/jake/Music/faust/compiler/generator/compile_scal.cpp:1894:1: warning: control reaches end of non-void function [-Wreturn-type]
1894 | }
| ^
[ 24%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/instructions_compiler.cpp.o
In file included from /home/jake/Music/faust/compiler/generator/interpreter/interpreter_comp_dsp_aux.hh:25,
from /home/jake/Music/faust/compiler/generator/interpreter/interpreter_dsp.hh:25,
from /home/jake/Music/faust/compiler/generator/interpreter/interpreter_code_container.hh:28,
from /home/jake/Music/faust/compiler/generator/instructions_compiler.cpp:31:
/home/jake/Music/faust/compiler/generator/interpreter/fbc_compiler.hh:83:2: warning: #warning pure Interpreter mode [-Wcpp]
83 | #warning pure Interpreter mode
| ^~~~~~~
In file included from /home/jake/Music/faust/compiler/generator/interpreter/fbc_executor.hh:26,
from /home/jake/Music/faust/compiler/generator/interpreter/fbc_interpreter.hh:36,
from /home/jake/Music/faust/compiler/generator/interpreter/fbc_compiler.hh:25,
from /home/jake/Music/faust/compiler/generator/interpreter/interpreter_comp_dsp_aux.hh:25,
from /home/jake/Music/faust/compiler/generator/interpreter/interpreter_dsp.hh:25,
from /home/jake/Music/faust/compiler/generator/interpreter/interpreter_code_container.hh:28,
from /home/jake/Music/faust/compiler/generator/instructions_compiler.cpp:31:
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h: In function ‘void buildUIGlue(UIGlue*, UI*, bool)’:
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h:284:101: warning: cast between incompatible function types from ‘void (*)(void*, const char*, double*, double, double, double, double)’ to ‘addVerticalSliderFun’ {aka ‘void (*)(void*, const char*, float*, float, float, float, float)’} [-Wcast-function-type]
284 | glue->addVerticalSlider = reinterpret_cast<addVerticalSliderFun>(addVerticalSliderGlueDouble);
| ^
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h:285:107: warning: cast between incompatible function types from ‘void (*)(void*, const char*, double*, double, double, double, double)’ to ‘addHorizontalSliderFun’ {aka ‘void (*)(void*, const char*, float*, float, float, float, float)’} [-Wcast-function-type]
285 | glue->addHorizontalSlider = reinterpret_cast<addHorizontalSliderFun>(addHorizontalSliderGlueDouble);
| ^
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h:286:83: warning: cast between incompatible function types from ‘void (*)(void*, const char*, double*, double, double, double, double)’ to ‘addNumEntryFun’ {aka ‘void (*)(void*, const char*, float*, float, float, float, float)’} [-Wcast-function-type]
286 | glue->addNumEntry = reinterpret_cast<addNumEntryFun>(addNumEntryGlueDouble);
| ^
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h:287:113: warning: cast between incompatible function types from ‘void (*)(void*, const char*, double*, double, double)’ to ‘addHorizontalBargraphFun’ {aka ‘void (*)(void*, const char*, float*, float, float)’} [-Wcast-function-type]
287 | glue->addHorizontalBargraph = reinterpret_cast<addHorizontalBargraphFun>(addHorizontalBargraphGlueDouble);
| ^
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h:288:107: warning: cast between incompatible function types from ‘void (*)(void*, const char*, double*, double, double)’ to ‘addVerticalBargraphFun’ {aka ‘void (*)(void*, const char*, float*, float, float)’} [-Wcast-function-type]
288 | glue->addVerticalBargraph = reinterpret_cast<addVerticalBargraphFun>(addVerticalBargraphGlueDouble);
| ^
[ 24%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/instructions_compiler1.cpp.o
[ 24%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/instructions_compiler_jax.cpp.o
/home/jake/Music/faust/compiler/generator/instructions_compiler_jax.cpp: In member function ‘virtual ValueInst* InstructionsCompilerJAX::generateSoundfile(Tree, Tree)’:
/home/jake/Music/faust/compiler/generator/instructions_compiler_jax.cpp:154:29: warning: comparison of constant ‘0’ with boolean expression is always true [-Wbool-compare]
154 | if (gGlobal->gOneSample >= 0) {
| ~~~~~~~~~~~~~~~~~~~~^~~~
[ 24%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/klass.cpp.o
[ 26%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/occurrences.cpp.o
[ 26%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/omp_code_container.cpp.o
[ 26%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/tools.cpp.o
/home/jake/Music/faust/compiler/generator/tools.cpp: In function ‘size_t cache_line_size()’:
/home/jake/Music/faust/compiler/generator/tools.cpp:82:15: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
82 | fscanf(p, "%d", &i);
| ~~~~~~^~~~~~~~~~~~~
[ 26%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/uitree.cpp.o
[ 60%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/parser/faustlexer.cpp.o
faustlexer.cpp: In function ‘int yy_get_next_buffer()’:
faustlexer.cpp:2591:38: warning: comparison of integer expressions of different signedness: ‘yy_size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
[ 60%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/parser/faustparser.cpp.o
faustparser.cpp: In function ‘int FAUSTparse()’:
faustparser.cpp:3467:37: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
In file included from /usr/include/c++/9/cstdlib:75,
from /usr/include/c++/9/ext/string_conversions.h:41,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/optional:38,
from /usr/include/c++/9/bits/node_handle.h:39,
from /usr/include/c++/9/bits/stl_tree.h:72,
from /usr/include/c++/9/map:60,
from /home/jake/Music/faust/compiler/global.hh:28,
from faustparser.y:7:
/usr/include/stdlib.h:539:14: note: in a call to allocation function ‘void* malloc(size_t)’ declared here
539 | extern void *malloc (size_t __size) __THROW __attribute_malloc__
| ^~~~~~
[ 62%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/parser/sourcefetcher.cpp.o
In file included from /usr/include/string.h:495,
from /home/jake/Music/faust/compiler/parser/sourcefetcher.cpp:26:
In function ‘char* strncpy(char*, const char*, size_t)’,
inlined from ‘int http_fetch(const char*, char**)’ at /home/jake/Music/faust/compiler/parser/sourcefetcher.cpp:119:9:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jake/Music/faust/compiler/parser/sourcefetcher.cpp: In function ‘int http_fetch(const char*, char**)’:
/home/jake/Music/faust/compiler/parser/sourcefetcher.cpp:119:30: note: length computed here
119 | strncpy(url, url_tmp, strlen(url_tmp) + 1);
| ~~~~~~^~~~~~~~~
[ 66%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/signals/signals.cpp.o
/home/jake/Music/faust/compiler/signals/signals.cpp: In function ‘bool isUIOutputItem(Tree)’:
/home/jake/Music/faust/compiler/signals/signals.cpp:653:17: warning: unused variable ‘c’ [-Wunused-variable]
653 | Tree label, c, x, y, z;
| ^
[ 88%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/wasm/wasm_dsp_aux.cpp.o
In file included from /home/jake/Music/faust/compiler/../architecture/faust/gui/JSONUIDecoder.h:35,
from /home/jake/Music/faust/compiler/generator/wasm/wasm_dsp_aux.cpp:36:
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h: In function ‘void buildUIGlue(UIGlue*, UI*, bool)’:
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h:284:101: warning: cast between incompatible function types from ‘void (*)(void*, const char*, double*, double, double, double, double)’ to ‘addVerticalSliderFun’ {aka ‘void (*)(void*, const char*, float*, float, float, float, float)’} [-Wcast-function-type]
284 | glue->addVerticalSlider = reinterpret_cast<addVerticalSliderFun>(addVerticalSliderGlueDouble);
| ^
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h:285:107: warning: cast between incompatible function types from ‘void (*)(void*, const char*, double*, double, double, double, double)’ to ‘addHorizontalSliderFun’ {aka ‘void (*)(void*, const char*, float*, float, float, float, float)’} [-Wcast-function-type]
285 | glue->addHorizontalSlider = reinterpret_cast<addHorizontalSliderFun>(addHorizontalSliderGlueDouble);
| ^
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h:286:83: warning: cast between incompatible function types from ‘void (*)(void*, const char*, double*, double, double, double, double)’ to ‘addNumEntryFun’ {aka ‘void (*)(void*, const char*, float*, float, float, float, float)’} [-Wcast-function-type]
286 | glue->addNumEntry = reinterpret_cast<addNumEntryFun>(addNumEntryGlueDouble);
| ^
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h:287:113: warning: cast between incompatible function types from ‘void (*)(void*, const char*, double*, double, double)’ to ‘addHorizontalBargraphFun’ {aka ‘void (*)(void*, const char*, float*, float, float)’} [-Wcast-function-type]
287 | glue->addHorizontalBargraph = reinterpret_cast<addHorizontalBargraphFun>(addHorizontalBargraphGlueDouble);
| ^
/home/jake/Music/faust/compiler/../architecture/faust/gui/CGlue.h:288:107: warning: cast between incompatible function types from ‘void (*)(void*, const char*, double*, double, double)’ to ‘addVerticalBargraphFun’ {aka ‘void (*)(void*, const char*, float*, float, float)’} [-Wcast-function-type]
288 | glue->addVerticalBargraph = reinterpret_cast<addVerticalBargraphFun>(addVerticalBargraphGlueDouble);
| ^
[ 88%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/wasm/wasm_dynamic_dsp_aux.cpp.o
[ 90%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/wasm/wasm_errormsg.cpp.o
[ 90%] Building CXX object CMakeFiles/faust.dir/home/jake/Music/faust/compiler/generator/wasm/wast_code_container.cpp.o
[ 90%] Linking CXX executable ../bin/faust
make[4]: Leaving directory '/home/jake/Music/faust/build/faustdir'
[ 90%] Built target faust
make[4]: Entering directory '/home/jake/Music/faust/build/faustdir'
Scanning dependencies of target oscstatic
make[4]: Leaving directory '/home/jake/Music/faust/build/faustdir'
make[4]: Entering directory '/home/jake/Music/faust/build/faustdir'
[ 90%] Building CXX object osc/CMakeFiles/oscstatic.dir/home/jake/Music/faust/architecture/osclib/faust/src/OSCControler.cpp.o
[ 92%] Building CXX object osc/CMakeFiles/oscstatic.dir/home/jake/Music/faust/architecture/osclib/faust/src/lib/OSCFError.cpp.o
[ 92%] Building CXX object osc/CMakeFiles/oscstatic.dir/home/jake/Music/faust/architecture/osclib/faust/src/lib/OSCRegexp.cpp.o
In file included from /home/jake/Music/faust/architecture/osclib/faust/src/lib/OSCRegexp.h:28,
from /home/jake/Music/faust/architecture/osclib/faust/src/lib/OSCRegexp.cpp:24:
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h: In member function ‘int CBuilderT<CHART>::GetNext2() [with CHART = char]’:
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:1745:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
1745 | if(m_pattern[m_nNextPos+2] != '{')
| ^~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:1760:4: note: here
1760 | case RCHART('u'):
| ^~~~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:1810:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
1810 | if( ! m_quote_fun ) m_quote_fun = ::tolower;
| ^~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:1812:4: note: here
1812 | case RCHART('U'):
| ^~~~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:1813:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
1813 | if( ! m_quote_fun ) m_quote_fun = ::toupper;
| ^~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:1815:4: note: here
1815 | case RCHART('Q'):
| ^~~~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h: In member function ‘ElxInterface* CBuilderT<CHART>::BuildRecursive(int&) [with CHART = char]’:
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:2587:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
2587 | bNegative = 1;
| ^~~~~~~~~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:2589:4: note: here
2589 | case RCHART('='):
| ^~~~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:2574:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
2574 | bNegative = 1;
| ^~~~~~~~~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:2576:3: note: here
2576 | case RCHART('='):
| ^~~~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:2601:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
2601 | if(pElx != 0) break;
| ^~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:2603:3: note: here
2603 | case RCHART('P'):
| ^~~~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:2604:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
2604 | if(curr.ch == RCHART('P')) MoveNext(); // skip 'P'
| ^~
/home/jake/Music/faust/architecture/osclib/faust/src/lib/deelx.h:2606:3: note: here
2606 | case RCHART('\''):
| ^~~~