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:
@@ -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__;
|
||||
|
||||
|
||||
@@ -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$";
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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__;
|
||||
|
||||
//
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user