Skip to content

Commit 2dbbc54

Browse files
authored
Merge pull request #776 from marxin/fix-2-warnings
fix 2 -Wextra warnings
2 parents 55552b1 + 2d79d1f commit 2dbbc54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elf/mold-wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static char *get_mold_path() {
2222
exit(1);
2323
}
2424

25-
static void debug_print(char *fmt, ...) {
25+
static void debug_print(const char *fmt, ...) {
2626
if (!getenv("MOLD_WRAPPER_DEBUG"))
2727
return;
2828

macho/mold.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class Subsection {
233233
u32 nrels = 0;
234234
u32 unwind_offset = 0;
235235
u32 nunwind = 0;
236-
Subsection<E> *replacer; // Used if is_coalesced is true
236+
Subsection<E> *replacer = nullptr; // Used if is_coalesced is true
237237

238238
std::atomic_uint8_t p2align = 0;
239239
std::atomic_bool is_alive = true;

0 commit comments

Comments
 (0)