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

incompatible-pointer-types in ahp_xc.c #2

Open
mattiaverga opened this issue Sep 15, 2024 · 0 comments
Open

incompatible-pointer-types in ahp_xc.c #2

mattiaverga opened this issue Sep 15, 2024 · 0 comments

Comments

@mattiaverga
Copy link

Build in Fedora Linux is failing due to incompatible-pointer-types in ahp_xc.c:

/usr/bin/gcc -Dahp_xc_EXPORTS -I/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/redhat-linux-build -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MT CMakeFiles/ahp_xc.dir/ahp_xc.c.o -MF CMakeFiles/ahp_xc.dir/ahp_xc.c.o.d -o CMakeFiles/ahp_xc.dir/ahp_xc.c.o -c /builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/ahp_xc.c
/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/ahp_xc.c: In function ‘ahp_xc_connect’:
/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/ahp_xc.c:460:1: warning: label ‘connect_end’ defined but not used [-Wunused-label]
  460 | connect_end:
      | ^~~~~~~~~~~
/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/ahp_xc.c:449:1: warning: label ‘try_connect’ defined but not used [-Wunused-label]
  449 | try_connect:
      | ^~~~~~~~~~~
/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/ahp_xc.c:444:13: warning: unused variable ‘try_high_rate’ [-Wunused-variable]
  444 |     int32_t try_high_rate = 1;
      |             ^~~~~~~~~~~~~
/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/ahp_xc.c: In function ‘_get_crosscorrelation’:
/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/ahp_xc.c:778:42: error: assignment to ‘double *’ from incompatible pointer type ‘long int *’ [-Wincompatible-pointer-types]
  778 |             sample->correlations[y].lags = arg->lags;
      |                                          ^
/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/ahp_xc.c:810:42: error: assignment to ‘double *’ from incompatible pointer type ‘long int *’ [-Wincompatible-pointer-types]
  810 |             sample->correlations[y].lags = arg->lags;
      |                                          ^
/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/ahp_xc.c: In function ‘ahp_xc_get_properties’:
/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/ahp_xc.c:1034:13: warning: unused variable ‘n_read’ [-Wunused-variable]
 1034 |     int32_t n_read = 0;
      |             ^~~~~~
In file included from /builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/ahp_xc.c:28:
/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/rs232.c: At top level:
/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/rs232.c:345:13: warning: ‘ahp_serial_flushRXTX’ defined but not used [-Wunused-function]
  345 | static void ahp_serial_flushRXTX()
      |             ^~~~~~~~~~~~~~~~~~~~
gmake[2]: Leaving directory '/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/redhat-linux-build'
gmake[2]: *** [CMakeFiles/ahp_xc.dir/build.make:79: CMakeFiles/ahp_xc.dir/ahp_xc.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/ahp_xc.dir/all] Error 2
gmake[1]: Leaving directory '/builddir/build/BUILD/libahp-xc-1.4.3-build/libahp-xc-1.4.3/redhat-linux-build'
gmake: *** [Makefile:139: all] Error 2
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