Attention is currently required from: daniel, dexter, fixeria, pespin.

arehbein has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmo-netif/+/34445?usp=email )

Change subject: ipa: Don't break strict aliasing rule
......................................................................


Patch Set 2:

(2 comments)

File include/osmocom/netif/ipa.h:

https://gerrit.osmocom.org/c/libosmo-netif/+/34445/comment/817e0602_645e0b44
PS2, Line 26: #warning "OSMO_IPA_MSGB_CB breaks the strict aliasing rule. Don't 
use unless -fno-strict-aliasing flag is enabled!"
> I just tried to build libosmo-netif completely and I don't see any warning 
> nor error.
I'm not sure if getting no warning from gcc is always equivalent with gcc not 
making use of, say strict aliasing optimizations. I wouldn't trust gcc that 
far. I have used the second solution you suggested above.


File include/osmocom/netif/ipa.h:

https://gerrit.osmocom.org/c/libosmo-netif/+/34445/comment/e47f3910_a116c0ab
PS1, Line 21: osmo_ipa_msgb_cb
> Is this warning going to show up when compiling any files including this 
> header and not necessarily  […]
(not a problem anymore, since the newest patch version is aliasing with a union 
in a legal way)



--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/34445?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Ibed543cdfcdda8c0256ce7d8818ff96d6d46e9b0
Gerrit-Change-Number: 34445
Gerrit-PatchSet: 2
Gerrit-Owner: arehbein <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <[email protected]>
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-CC: pespin <[email protected]>
Gerrit-Attention: pespin <[email protected]>
Gerrit-Attention: fixeria <[email protected]>
Gerrit-Attention: daniel <[email protected]>
Gerrit-Attention: dexter <[email protected]>
Gerrit-Comment-Date: Mon, 18 Sep 2023 17:13:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: arehbein <[email protected]>
Comment-In-Reply-To: fixeria <[email protected]>
Comment-In-Reply-To: pespin <[email protected]>
Gerrit-MessageType: comment

Reply via email to