Stop "warning: `id' defined but not used" messages from gcc -- use a char[]

instead of a char* and they go away!
This commit is contained in:
Andrew Johnson
2006-11-16 19:32:13 +00:00
parent 27fcfac8b8
commit ecac0269dd
5 changed files with 7 additions and 7 deletions

View File

@@ -48,7 +48,7 @@
#include "autoPtrFreeList.h"
#include "noopiiu.h"
static const char *pVersionCAC =
static const char pVersionCAC[] =
"@(#) " EPICS_VERSION_STRING
", CA Client Library " __DATE__;

View File

@@ -31,7 +31,7 @@
#include "casIntfOS.h"
// include a version string for POSIX systems
static const char * pVersionCAS =
static const char pVersionCAS[] =
"@(#) " EPICS_VERSION_STRING
", CA Portable Server Library "
"$Date$";

View File

@@ -19,7 +19,7 @@
* .01 06-14-93 joh needs devAllocInterruptVector() routine
*/
static char *sccsID = "@(#) $Id$";
static const char sccsID[] = "@(#) $Id$";
#include <string.h>
#include <stdio.h>

View File

@@ -37,7 +37,7 @@
#include "osiSock.h" /* pull in struct timeval */
#include "epicsStdio.h"
static const char *pEpicsTimeVersion =
static const char pEpicsTimeVersion[] =
"@(#) " EPICS_VERSION_STRING ", Common Utilities Library " __DATE__;
//

View File

@@ -18,13 +18,13 @@
#define epicsExportSharedSymbols
#include "epicsRelease.h"
static const char *id = "@(#) " EPICS_VERSION_STRING ", Misc. Utilities Library" __DATE__;
static const char id[] = "@(#) " EPICS_VERSION_STRING ", Misc. Utilities Library" __DATE__;
epicsShareFunc int epicsShareAPI coreRelease(void)
{
printf ( "############################################################################\n" );
printf ( "### %s\n", "EPICS IOC CORE built on " __DATE__ );
printf ( "### %s\n", epicsReleaseVersion );
printf ( "## %s\n", epicsReleaseVersion );
printf ( "## %s\n", "EPICS Base built " __DATE__ );
printf ( "############################################################################\n" );
return 0;
}