mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
Fix compile-time warnings. Adjust include in d-asm-i386.
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
/**************************************************************/
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user