bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ddrescue] GNU ddrescue 1.27-rc1 released


From: Christian Franke
Subject: Re: [Bug-ddrescue] GNU ddrescue 1.27-rc1 released
Date: Thu, 22 Dec 2022 19:10:51 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 SeaMonkey/2.53.14

Antonio Diaz Diaz wrote:
GNU ddrescue 1.27-rc1 is ready for testing here
http://download.savannah.gnu.org/releases/ddrescue/ddrescue-1.27-rc1.tar.lz

The sha256sum is:
3c9e685a03735e1182efd2628770212ff490fdb4333cfce4e891f2a8adac1f57 ddrescue-1.27-rc1.tar.lz

Please, test it and report any bugs you find.

Cygwin g++ 11.3.0 prints two warnings which make sense:

loggers.cc: In function ‘const char* {anonymous}::format_time_dhms(long long int)’: loggers.cc:42:62: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]    42 |   if( d ) snprintf( buf, sizeof buf, "%lldd:%02dh:%02dm:%02ds", d, h, m, s );
      | ^
loggers.cc:42:19: note: ‘snprintf’ output between 15 and 33 bytes into a destination of size 32    42 |   if( d ) snprintf( buf, sizeof buf, "%lldd:%02dh:%02dm:%02ds", d, h, m, s );
      | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

main.cc: In function ‘Rational {anonymous}::parse_rational_time(const char*, const char*, bool, int)’: main.cc:186:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
  186 |       case ',': if( comma ) break;
      |                 ^~
main.cc:187:7: note: here
  187 |       default :

See attached patch for possible fixes. The "// fallthrough" may also work with clang++. C++17 or later would allow "[[fallthrough]];" attribute.

--
Regards,
Christian

Attachment: ddrescue-1.27-rc1.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]