learnfm icon indicating copy to clipboard operation
learnfm copied to clipboard

Does not compile on FreeBSD

Open probonopd opened this issue 3 years ago • 0 comments

Does not compile on FreeBSD:

FreeBSD% gmake
g++ -Wall -O  -c dx7note.cc
g++ -Wall -O  -c env.cc
env.cc: In member function 'int32_t Env::getsample()':
env.cc:34:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   34 |   if (ix_ < 3 || (ix_ < 4) && !down_) {
      |                  ~~~~~~~~~~^~~~~~~~~
g++ -Wall -O  -c exp2.cc
g++ -Wall -O  -c fir.cc
In file included from fir.cc:22:
aligned_buf.h: In member function 'T* AlignedBuf<T, size, alignment>::get()':
aligned_buf.h:28:21: error: 'intptr_t' was not declared in this scope
   28 |     return (T *)((((intptr_t)storage_) + alignment - 1) & -alignment);
      |                     ^~~~~~~~
aligned_buf.h:28:30: error: expected ')' before 'storage_'
   28 |     return (T *)((((intptr_t)storage_) + alignment - 1) & -alignment);
      |                   ~          ^~~~~~~~
      |                              )
aligned_buf.h:28:70: error: expected ')' before ';' token
   28 |     return (T *)((((intptr_t)storage_) + alignment - 1) & -alignment);
      |                  ~                                                   ^
      |                                                                      )
aligned_buf.h:28:70: error: expected ')' before ';' token
   28 |     return (T *)((((intptr_t)storage_) + alignment - 1) & -alignment);
      |                 ~                                                    ^
      |                                                                      )
fir.cc: In destructor 'HalfRateFirFilter::~HalfRateFirFilter()':
fir.cc:91:3: warning: deleting object of abstract class type 'FirFilter<float, float>' which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor]
   91 |   delete f0;
      |   ^~~~~~~~~
fir.cc:92:3: warning: deleting object of abstract class type 'FirFilter<float, float>' which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor]
   92 |   delete f1;
      |   ^~~~~~~~~
fir.cc:93:3: warning: deleting object of abstract class type 'FirFilter<float, float>' which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor]
   93 |   delete f2;
      |   ^~~~~~~~~
fir.cc: In member function 'virtual void SseFirFilter::process(const float*, float*, size_t)':
fir.cc:218:21: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
  218 |   for (int i = 0; i < nk; i += 4) {
      |                   ~~^~~~
fir.cc:236:21: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
  236 |   for (int i = 0; i < n; i += 4) {
      |                   ~~^~~
fir.cc:242:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
  242 |     for (int j = 0; j < nk; j += 4) {
      |                     ~~^~~~
gmake: *** [Makefile:15: fir.o] Fehler 1

probonopd avatar Feb 27 '22 22:02 probonopd