remove warnings in mdfour.c, checksum.h, trace.h, netint.c by Adsun701 · Pull Request #165 · librsync/librsync

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

dbaarda

Experimenting here with commiting directly to someone else's pull request in github.

This is the better way to fix this.
gcc version 9.2.1 20190821 (Debian 9.2.1-4)  gave a warning that 'd' is not always initialized by rs_suck_netint(). It noticed that if rs_suck_netint() doesn't return RS_DONE it means it doesn't set the value.

This stops that warning.

@dbaarda dbaarda changed the title remove warnings in mdfour.c, checksum.h, trace.h remove warnings in mdfour.c, checksum.h, trace.h, netint.c

Sep 13, 2019
Tests show this is faster for gcc than the switch statements, as well as avoiding warnings.