jivanpal / drat

Utility for performing data recovery and analysis of APFS partitions/containers.
GNU General Public License v3.0
163 stars 21 forks source link

error compiling for Apple M2 #52

Closed giddybitty closed 8 months ago

giddybitty commented 8 months ago

hi there

I followed your install instructions. Make seems to go well until I get this error:

OBJECTS +++ src/commands/inspect.c +++ out/src/commands/inspect.o
gcc -std=c99 -D _GNU_SOURCE -Werror -Wall -Wextra -Wno-incompatible-pointer-types -Wno-multichar -Wno-unused-variable -Wno-unused-parameter -Wno-missing-field-initializers -I./include -I/usr/local/Cellar/argp-standalone/1.3/include/ -c "src/commands/inspect.c" -o "out/src/commands/inspect.o"
src/commands/inspect.c:536:20: error: variable 'num_records' set but not used [-Werror,-Wunused-but-set-variable]
            size_t num_records = 0;
                   ^
1 error generated.
gmake: *** [Makefile:59: out/src/commands/inspect.o] Error 1

I'm at a loss, have no idea how to fix this. May I ask for hlep?

many thanks and regards

jivanpal commented 8 months ago

Hi, thanks for reporting this. I've made a change that should fix this, just run git pull and then try make again.

jivanpal commented 8 months ago

Closing; please reply if issue persists.