Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not compile on FreeBSD #6

Open
probonopd opened this issue Feb 27, 2022 · 0 comments
Open

Does not compile on FreeBSD #6

probonopd opened this issue Feb 27, 2022 · 0 comments

Comments

@probonopd
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant