Skip to content
New issue

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

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

Already on GitHub? # to your account

build warning on ubuntu 22.04 #43

Open
aqueos opened this issue Sep 30, 2024 · 0 comments
Open

build warning on ubuntu 22.04 #43

aqueos opened this issue Sep 30, 2024 · 0 comments

Comments

@aqueos
Copy link

aqueos commented Sep 30, 2024

hi,

i got some error i share here:

main.c: In function ‘show_malloc_stats’:
main.c:372:9: warning: ‘mallinfo’ is deprecated [-Wdeprecated-declarations]
  372 |         mi = mallinfo();
      |         ^~
In file included from rsync.h:357,
                 from main.c:23:
/usr/include/malloc.h:114:24: note: declared here
  114 | extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
      |                        ^~~~~~~~


gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W  -c lib/md5.c -o lib/md5.o
lib/md5.c:210:21: warning: argument 1 of type ‘unsigned char *’ declared as a pointer [-Warray-parameter=]
  210 | void get_md5(uchar *out, const uchar *input, int n)
In file included from lib/../rsync.h:1016,
                 from lib/md5.c:20:
lib/../lib/mdigest.h:26:20: note: previously declared as an array ‘unsigned char[16]’
   26 | void get_md5(uchar digest[MD5_DIGEST_LEN], const uchar *input, int n);

only those two.

best regards,
Ghislain.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant