gcc-6.3.0 has MUCH stricter type checking etc and throws up many such warnings.

It also threw some errors in 2 of the maths functions, which when you looked at the code, beggared belief that they had ever worked.
Those have been fixed.

There are a lot of instances in the code where things have been 'gotten away with' for a long time.
Passing char* to parameters which are defined as taking const char* and vice versa is a prime example.

So long as it builds, don't worry overly.
The mesa code in particular is low level C device driver stuff, written outside the project and we are not going to mess with it unnecessarily. ;-)

On 19/07/17 15:49, [email protected] wrote:

Ok I have made progress.  make ran to completion but there were some warning from the hal component.
I am not sure if this is a problem or not.  I am pasting a sample below.

hal/drivers/mesa-hostmot2/pktuart.c: In function ‘hm2_pktuart_setup’:
hal/drivers/mesa-hostmot2/pktuart.c:233:27: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
         if ( (buff >> 22) & 0xff == 0x0) {
                           ^
In file included from hal/drivers/mesa-hostmot2/pktuart.c:26:0:
hal/drivers/mesa-hostmot2/pktuart.c: In function ‘hm2_pktuart_read’:
hal/drivers/mesa-hostmot2/hostmot2.h:50:21: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
 #define HM2_NAME    "hm2"
                     ^
hal/drivers/mesa-hostmot2/hostmot2.h:67:66: note: in expansion of macro ‘HM2_NAME’
 #define HM2_ERR(fmt, args...)    rtapi_print_msg(RTAPI_MSG_ERR,  HM2_NAME "/%s: " fmt, hm2->llio->name, ## args)
                                                                  ^~~~~~~~
hal/drivers/mesa-hostmot2/pktuart.c:403:9: note: in expansion of macro ‘HM2_ERR’
         HM2_ERR("%s read: hm2->llio->write failure %s\n", name);
         ^~~~~~~
What do you think are these problems?

Thanks  med
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to