Subject:
|
More warning cleanup - const qualifier ignored on asm
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sun, 16 Feb 2003 00:02:39 GMT
|
Viewed:
|
3036 times
|
| |
| |
In include/sys/bitops.h :
// g++ warns about __asm__ const. we define the problem away.
// the CXX symbol is predefined in the Makefile
//
#ifdef CXX
# define ASMCONST
#else
# define ASMCONST const
#endif
But CXX is *not* defined in the Makefile. In any case, gcc3 complains
anyway, so at a mimimum, we should add __GNUC__ > 2 to the the conditional.
What is an 'asm const' anyway? If it has no meaning to gcc, why is it there
at all?
Max.
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|