<feed xmlns='http://www.w3.org/2005/Atom'>
<title>netbsd/tests/usr.bin/xlint/lint1/msg_247_portable.c, branch trunk</title>
<subtitle>NetBSD fork for lockdoc analysis</subtitle>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/'/>
<entry>
<title>lint: warn about pointer casts between different kinds of types</title>
<updated>2023-07-08T16:13:00+00:00</updated>
<author>
<name>rillig</name>
<email>rillig@NetBSD.org</email>
</author>
<published>2023-07-08T16:13:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=9299a7c5194512b0d5ea06c7b286d4bae6640791'/>
<id>9299a7c5194512b0d5ea06c7b286d4bae6640791</id>
<content type='text'>
Pointer casts from an integer type to a floating-point type and vice
versa get a 'maybe troublesome' warning now.  The previous assumption
that all types of the same bit-size are convertible may have been valid
from a technical point of view, but still such code should get more
attention.

The rules for struct and union types could be made more fine-grained
later, if the need arises.  To suppress this warning, it's always
possible to cast to an intermediate 'void *'.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pointer casts from an integer type to a floating-point type and vice
versa get a 'maybe troublesome' warning now.  The previous assumption
that all types of the same bit-size are convertible may have been valid
from a technical point of view, but still such code should get more
attention.

The rules for struct and union types could be made more fine-grained
later, if the need arises.  To suppress this warning, it's always
possible to cast to an intermediate 'void *'.</pre>
</div>
</content>
</entry>
<entry>
<title>lint: do not use portable type sizes in integer constraints</title>
<updated>2023-07-08T15:26:25+00:00</updated>
<author>
<name>rillig</name>
<email>rillig@NetBSD.org</email>
</author>
<published>2023-07-08T15:26:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=65989024f874330227db7d9793fa78cab7c0ee2f'/>
<id>65989024f874330227db7d9793fa78cab7c0ee2f</id>
<content type='text'>
This reverts the change from tree.c 1.547 from 2023-07-03.  Back then, I
didn't know that the actual value from a type's 'portable size in bits'
was not supposed to be used.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts the change from tree.c 1.547 from 2023-07-03.  Back then, I
didn't know that the actual value from a type's 'portable size in bits'
was not supposed to be used.</pre>
</div>
</content>
</entry>
<entry>
<title>tests/lint: spell platform identifiers for 'long double' consistently</title>
<updated>2023-07-05T11:42:14+00:00</updated>
<author>
<name>rillig</name>
<email>rillig@NetBSD.org</email>
</author>
<published>2023-07-05T11:42:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=00d31836f19a7d36e1ee546528bc6a5822270f1f'/>
<id>00d31836f19a7d36e1ee546528bc6a5822270f1f</id>
<content type='text'>
The test file names don't have a hyphen, so the identifiers shouldn't
have one either.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The test file names don't have a hyphen, so the identifiers shouldn't
have one either.</pre>
</div>
</content>
</entry>
<entry>
<title>tests/lint: add platform-specific tests for troublesome pointer casts</title>
<updated>2023-07-05T11:36:56+00:00</updated>
<author>
<name>rillig</name>
<email>rillig@NetBSD.org</email>
</author>
<published>2023-07-05T11:36:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=b09f23c8252f1dbf901d0f3e4f6c74395bca932e'/>
<id>b09f23c8252f1dbf901d0f3e4f6c74395bca932e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
