Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9873 Discussions

ISSM IQDC compiler __attribute__

Munchoy_W_Intel
Employee
1,234 Views

I am using ISSM 2015 version 2015.3.022 in a VM running Ubuntu OS. I did not use Eclipse to build my source code and instead, I build the code from a shell by calling the make utility.

Everything seems working fine except that there are a lot of warnings like this:

 

====================================================================================

/opt/intel/issm_d1000_2015.3.022/tools/compiler/include/stdlib.h:122:65: warning: unknown attribute '__warning__' ignored [-Wattributes]

char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead"))));

^

/opt/intel/issm_d1000_2015.3.022/tools/compiler/include/_ansi.h:101:42: note: expanded from macro '_ATTRIBUTE'

# define _ATTRIBUTE(attrs) __attribute__ (attrs)

^

/opt/intel/issm_d1000_2015.3.022/tools/compiler/include/_ansi.h:65:35: note: expanded from macro '_EXFUN'

# define _EXFUN(name, proto) name proto

=====================================================================================

From the warnings, It looks like '__warning__' is not a recognized __attribute__ to the compiler but it is used in stdlib.h. Any idea?

0 Kudos
1 Solution
Shahmi_S_Intel
Employee
215 Views

Hi Mun Choy,

This warning message is related to function attributes as some of it may not be supported by the compiler. But this is just a warning, and should not give any problem on your rprogram.

View solution in original post

3 Replies
Shahmi_S_Intel
Employee
216 Views

Hi Mun Choy,

This warning message is related to function attributes as some of it may not be supported by the compiler. But this is just a warning, and should not give any problem on your rprogram.

Rahul_K_Intel
Employee
215 Views

Hi Mun Choi,

I agree with Shahmi. These are compiler related warnings that I have reported to compiler engineers. They don't seem to have any negative effect.

Munchoy_W_Intel
Employee
215 Views

Hi Shahmi, Rahul,

Thanks for your reply. These warnings are all over the place of build messages. I have an interim solution to use "-Wno-attributes" but hopefully this can be addressed without suppressing the attribute warnings.

Reply