[systemd-devel] jio test results

Paul Menzel pmenzel+systemd-devel at molgen.mpg.de
Thu Nov 26 20:40:35 UTC 2020


Dear Vito,


Am 26.11.20 um 19:54 schrieb Vito Caputo:
> On Thu, Nov 26, 2020 at 12:28:16PM +0100, Paul Menzel wrote:

[…]

>> Thank you. It builds fine on Debian Sid/unstable with GCC 10.2.0-19 (some
>> warnings), and the results are attached.
> 
> Any chance you could mail me the warnings?  I see none here, would
> prefer a clean build for others.

Hopefully there won’t be line wrapping when viewed with `format=flowed`.

```
$ gcc --version
gcc (Debian 10.2.0-19) 10.2.0
[…]
$ make
[…]
   CC       jio-journals.o
journals.c: In function ‘got_hash_table_iter_object_header’:
journals.c:361:4: warning: converting a packed ‘HashedObjectHeader’ 
pointer (alignment 1) to a ‘DataObject’ pointer (alignment 8) may result 
in an unaligned pointer value [-Waddress-of-packed-member]
   361 |    DataObject *data_object = (DataObject *)iter_object_header;
       |    ^~~~~~~~~~
In file included from journals.h:14,
                  from journals.c:30:
upstream/journal-def.h:80:8: note: defined here
    80 | struct HashedObjectHeader {
       |        ^~~~~~~~~~~~~~~~~~
upstream/journal-def.h:95:8: note: defined here
    95 | struct DataObject DataObject__contents;
       |        ^~~~~~~~~~
journals.c:372:4: warning: converting a packed ‘HashedObjectHeader’ 
pointer (alignment 1) to a ‘FieldObject’ pointer (alignment 8) may 
result in an unaligned pointer value [-Waddress-of-packed-member]
   372 |    FieldObject *field_object = (FieldObject *)iter_object_header;
       |    ^~~~~~~~~~~
In file included from journals.h:14,
                  from journals.c:30:
upstream/journal-def.h:80:8: note: defined here
    80 | struct HashedObjectHeader {
       |        ^~~~~~~~~~~~~~~~~~
upstream/journal-def.h:105:8: note: defined here
   105 | struct FieldObject FieldObject__contents;
       |        ^~~~~~~~~~~
[…]
```


Kind regards,

Paul


More information about the systemd-devel mailing list