This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"declaration does not declare anything"?



Hrm, I've never seen this before... can anybody give me a hint as to
what the compiler is trying to tell me? This seems to only show up
when crosscompiling...

Spewage:
  java/lang/Thread.h:69: declaration does not declare anything
  java/lang/Thread.h:69: storage class specified for typename
  java/lang/Thread.h:69: parse error before numeric constant
  java/lang/Thread.h:70: declaration does not declare anything
  java/lang/Thread.h:70: storage class specified for typename
  java/lang/Thread.h:70: parse error before numeric constant

Relevant source lines:
  static const jint MAX_PRIORITY = 10L;
  static const jint MIN_PRIORITY = 1L;
  static const jint NORM_PRIORITY = 5L;

Kinda strange that the compiler barfs on MAX_PRIORITY and MIN_PRIORITY
but not NORM_PRIORITY, eh?

  - a


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]