done.

thanks


On Mon, Jan 9, 2017 at 5:02 AM, Michael Rink <[email protected]> wrote:

> ... done, pull request #393
>
> Best regards
> Michael
>
> On 04.01.2017 10:51, Eric Decker wrote:
> >
> > you can certainly ignore them but it would be better to fix them.
> >
> > the main development tree is at https://github.com/tinyos/tinyos-main
> >
> > fork it, work on a branch, and then submit a pull request and I'll take
> > a look at it.
> >
> > thanks for the attention to detail.
> >
> >
> > On Tue, Jan 3, 2017 at 11:45 PM, Michael Rink <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     Hi,
> >
> >     when switching from avr-gcc 4.1.2 to 4.8.1 (avr8-gnu-toolchain
> >     3.4.5.1522 [1])
> >     some code compiles with "dereferencing type-punned pointer" warnings.
> >
> >     For example, if one includes the SHT21 components, then one gets
> >     something like
> >
> >     tinyos-main/tos/chips/sht21/Sht21TempLogicP.nc: In function
> >     'Sht21TempLogicP__signalDone__runTask':
> >     tinyos-main/tos/chips/sht21/Sht21TempLogicP.nc:165:9: warning:
> >     dereferencing type-punned pointer will break strict-aliasing rules
> >     [-Wstrict-aliasing]
> >          oldTempData =  *((nx_uint16_t*)buffer);
> >              ^
> >
> >
> >     Can these warnings be ignored, or is it better to fix the
> corresponding
> >     lines of code?
> >     - e.g. analogously to
> >         oldTempData = ((uint16_t)buffer[0] << 8) | buffer[1];
> >
> >
> >     Best regards
> >     Michael
> >
> >     [1]
> >     http://distribute.atmel.no/tools/opensource/Atmel-AVR-
> GNU-Toolchain/3.4.5/
> >     <http://distribute.atmel.no/tools/opensource/Atmel-AVR-
> GNU-Toolchain/3.4.5/>
> >     _______________________________________________
> >     Tinyos-help mailing list
> >     [email protected]
> >     <mailto:[email protected]>
> >     https://www.millennium.berkeley.edu/cgi-bin/mailman/
> listinfo/tinyos-help
> >     <https://www.millennium.berkeley.edu/cgi-bin/mailman/
> listinfo/tinyos-help>
> >
> >
> >
> >
> > --
> > Eric B. Decker
> > Senior (over 50 :-) Researcher
> >
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to