Avoid warnings on Mac
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 May 2006 15:17:27 +0000 (15:17 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 May 2006 15:17:27 +0000 (15:17 +0000)
RAW/dateStream.cxx

index 006d14a..64ceb68 100644 (file)
@@ -45,8 +45,8 @@ char fileHandlerIdent[]= "@(#)""" __FILE__ """: """ DESCRIPTION \
 const char *myName;
 int debug;
 FILE *outF;
-enum { unknown, ldc, gdc } workingAs;
-enum { collider, fixedTarget } workingMode;
+static enum { unknown, ldc, gdc } workingAs;
+static enum { collider, fixedTarget } workingMode;
 struct ldcDescriptorStruct {
   eventLdcIdType id;
   struct ldcDescriptorStruct *next;
@@ -496,8 +496,13 @@ void loadPayload( const char *fileName ) {
          printf( " CDH: blockLenght:%d=0x%08x ",
                  cdh->cdhBlockLength, cdh->cdhBlockLength );
          if ( cdh->cdhBlockLength < sizeof( *cdh ) ) {
+#ifdef __APPLE__
+           printf( "TOO SMALL (minimum:%ld=0x%08lx)\n",
+                   sizeof( *cdh ), sizeof( *cdh ) );
+#else
            printf( "TOO SMALL (minimum:%d=0x%08x)\n",
                    sizeof( *cdh ), sizeof( *cdh ) );
+#endif
          } else {
            printf( "version:%d=0x%x ", cdh->cdhVersion, cdh->cdhVersion );
            if ( cdh->cdhVersion != CDH_VERSION ) {