Kaydet (Commit) d2a02df2 authored tarafından Martyn Russell's avatar Martyn Russell Kaydeden (comit) Michael Meeks

cppcheck: Avoid unused variables code warnings

Change-Id: I51ba83c5356f2eb33ed09f6516de9f004678bc8f
üst 4019acf2
......@@ -44,10 +44,6 @@ char **argv;
int cnt; /* number of allocated objects */
int nm = 0; /* number of mallocs */
int nre = 0; /* number of reallocs */
int nal; /* number of allocated objects */
int nfre; /* number of free list objects */
long alm; /* memory in allocated objects */
long frem; /* memory in free list */
long startsize; /* size at loop start */
long endsize; /* size at loop exit */
long maxiter = 0; /* real max # iterations */
......
......@@ -31,8 +31,6 @@ dstrlwr(entry, target)
char *entry;
char *target;
{
char *p;
if (STOBOOL(DcacheRespCase))
return;
......
......@@ -844,8 +844,6 @@ int pqid;
PUBLIC void
Clean_up_processes()
{
int ret;
if( _procs != NIL(PR) )
{
register int i;
......@@ -853,6 +851,7 @@ Clean_up_processes()
if( _procs[i].pr_valid )
{
#if !defined(USE_CREATEPROCESS)
int ret;
if( (ret = kill(_procs[i].pr_pid, SIGTERM)) )
{
fprintf(stderr, "Killing of pid %d from pq[%d] failed with: %s - %d ret: %d\n",
......
......@@ -181,7 +181,6 @@ int pid;
int status;
{
register int i;
register PR *pp;
char *dir;
for( i=0; i<Max_proc; i++ )
......
......@@ -180,7 +180,6 @@ int pid;
int status;
{
register int i;
register PR *pp;
char *dir;
for( i=0; i<Max_proc; i++ )
......
......@@ -76,7 +76,14 @@ JNIEXPORT jlong JNICALL Java_embeddedobj_test_NativeView_getNativeWindow
JAWT awt ;
JAWT_DrawingSurface* ds ;
JAWT_DrawingSurfaceInfo* dsi ;
#ifdef WNT
JAWT_Win32DrawingSurfaceInfo* dsi_win ;
#else
// FIXME: Where is dsi_x11 defined?
// Added below because I'm guessing this test breaks
//
// JAWT_X11DrawingSurfaceInfo*dsi_x11 ;
#endif
jlong drawable;
/* Get the AWT */
......
......@@ -116,7 +116,6 @@ bool doParameterTest(const Reference<XInvocation> & inv)
Sequence<Any> seqOut;
Any arArgs[2];
Any arValue[2];
Any arArgs1[4];
NamedArgument arg1(OUString(L"val1"), makeAny((sal_Int32) 123));
......
......@@ -642,8 +642,11 @@ void HelpLinker::link() throw( HelpProcessingException )
const std::string &additionalFileKey = enumer->first;
fs::path fsAdditionalFileName( additionalFileName, fs::native );
std::string aNativeStr = fsAdditionalFileName.native_file_string();
HCDBG(const char* pStr = aNativeStr.c_str(); std::cerr << pStr << std::endl);
HCDBG({
std::string aNativeStr = fsAdditionalFileName.native_file_string();
const char* pStr = aNativeStr.c_str();
std::cerr << pStr << std::endl;
});
fs::path fsTargetName( indexDirParentName / additionalFileKey );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment