Fix compile-time warnings. Adjust include in d-asm-i386.

This commit is contained in:
Christian Kamm
2008-11-03 12:35:29 +01:00
parent 9688b4c9a7
commit 16b38a7fef
5 changed files with 9 additions and 9 deletions

View File

@@ -139,7 +139,7 @@ struct Declaration : Dsymbol
Declaration *isDeclaration() { return this; }
// llvm
virtual void toObjFile(); // compile to .obj file
virtual void toObjFile(int unused = 0); // compile to .obj file
};
/**************************************************************/

View File

@@ -613,7 +613,7 @@ void Module::parse()
}
}
void Module::semantic()
void Module::semantic(Scope* unused_sc)
{ int i;
if (semanticstarted)
@@ -661,7 +661,7 @@ void Module::semantic()
//printf("-Module::semantic(this = %p, '%s'): parent = %p\n", this, toChars(), parent);
}
void Module::semantic2()
void Module::semantic2(Scope* unused_sc)
{ int i;
if (deferred.dim)
@@ -700,7 +700,7 @@ void Module::semantic2()
//printf("-Module::semantic2('%s'): parent = %p\n", toChars(), parent);
}
void Module::semantic3()
void Module::semantic3(Scope* unused_sc)
{ int i;
//printf("Module::semantic3('%s'): parent = %p\n", toChars(), parent);

View File

@@ -126,9 +126,9 @@ struct Module : Package
#else
void parse(); // syntactic parse
#endif
void semantic(); // semantic analysis
void semantic2(); // pass 2 semantic analysis
void semantic3(); // pass 3 semantic analysis
void semantic(Scope* unused_sc = NULL); // semantic analysis
void semantic2(Scope* unused_sc = NULL); // pass 2 semantic analysis
void semantic3(Scope* unused_sc = NULL); // pass 3 semantic analysis
void inlineScan(); // scan for functions to inline
#ifdef _DH
void genhdrfile(); // generate D import file

View File

@@ -1,7 +1,7 @@
// Taken from GDC source tree. Original by David Friedman.
// Released under the Artistic License found in dmd/artistic.txt
#include "dmd/id.h"
#include "id.h"
typedef enum {
Reg_Invalid = -1,

View File

@@ -879,7 +879,7 @@ void Dsymbol::toObjFile(int multiobj)
/* ================================================================== */
void Declaration::toObjFile()
void Declaration::toObjFile(int unused)
{
Logger::println("Ignoring Declaration::toObjFile for %s", toChars());
}