summaryrefslogtreecommitdiffstats
path: root/src/pdb.c
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2026-07-21 01:00:09 +0200
committerladevieq <ladevie.quentin@gmail.com>2026-07-21 01:00:09 +0200
commitf57dd58dfd5755349e971e921ff58993a1ca5475 (patch)
tree976d245546938a0e410a9c647ccbb04f3deec8da /src/pdb.c
parentda9f15874c313150672ef7673969dff97cbe1b26 (diff)
Add an UNUSED_PARAM/VAR macro
Diffstat (limited to 'src/pdb.c')
-rw-r--r--src/pdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pdb.c b/src/pdb.c
index 6960706..982a0d8 100644
--- a/src/pdb.c
+++ b/src/pdb.c
@@ -365,7 +365,7 @@ void open_pdb(const i8* pdb_path, struct module* module) {
print("END SYMBOL\n");
} else if (rec->rectyp == S_FRAMEPROC) {
struct FRAMEPROCSYM* frameproc = (struct FRAMEPROCSYM*)cur_sym;
- (void)frameproc; // Not used yet
+ UNUSED_VAR(frameproc); // Not used yet
print("FRAMEPROC SYMBOL\n");
} else if (rec->rectyp == S_OBJNAME) {
struct OBJNAMESYM* objname = (struct OBJNAMESYM*)cur_sym;
@@ -401,7 +401,7 @@ void open_pdb(const i8* pdb_path, struct module* module) {
print("REGREL32 SYMBOL %s\n", regrel->name);
} else if (rec->rectyp == S_COMPILE2) {
struct COMPILESYM* compile = (struct COMPILESYM*)cur_sym;
- (void)compile; // Not used yet
+ UNUSED_VAR(compile); // Not used yet
print("COMPILE2 SYMBOL\n");
} else if (rec->rectyp == S_SECTION) {
struct SECTIONSYM* section = (struct SECTIONSYM*)cur_sym;
@@ -411,14 +411,14 @@ void open_pdb(const i8* pdb_path, struct module* module) {
print("COFFGROUP SYMBOL %s\n", coff->name);
} else if (rec->rectyp == S_CALLSITEINFO) {
struct CALLSITEINFO* callsiteinfo = (struct CALLSITEINFO*)cur_sym;
- (void)callsiteinfo; // Not used yet
+ UNUSED_VAR(callsiteinfo); // Not used yet
print("CALLSITEINFO SYMBOL\n");
} else if (rec->rectyp == S_COMPILE3) {
struct COMPILESYM3* compile = (struct COMPILESYM3*)cur_sym;
print("COMPILE3 SYMBOL %s\n", compile->verSz);
} else if (rec->rectyp == S_BUILDINFO) {
struct BUILDINFOSYM* buildinfo = (struct BUILDINFOSYM*)cur_sym;
- (void)buildinfo; // Not used yet
+ UNUSED_VAR(buildinfo); // Not used yet
print("BUILDINFO SYMBOL\n");
} else {
print("Unknown symbol kind %x\n", rec->rectyp);