To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3174
3173  |  3175
Subject: 
More warning cleanup - const qualifier ignored on asm
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 16 Feb 2003 00:02:39 GMT
Viewed: 
2644 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR