Skip to content

Compile fails on clang 9.0.0 #1

Description

@parkerlreed

Arch Linux
clang version 9.0.0 (trunk) (llvm/trunk 358753)

clang -Werror -Wall -Wno-unknown-warning-option -Wno-multichar -Wno-int-in-bool-context -std=gnu11 -D_GNU_SOURCE -DVERSION="0.11.1" -I. -D_USE_MATH_DEFINES -Wno-deprecated-declarations -g -DGB_INTERNAL -c Core/timing.c -o build/obj/Core/timing.c.o
clang -Werror -Wall -Wno-unknown-warning-option -Wno-multichar -Wno-int-in-bool-context -std=gnu11 -D_GNU_SOURCE -DVERSION="0.11.1" -I. -D_USE_MATH_DEFINES -Wno-deprecated-declarations -g -c Misc/wide_gb.c -o build/obj/Misc/wide_gb.c.o
Misc/wide_gb.c:154:47: error: format specifies type 'unsigned long long *' but the argument has type 'WGB_exact_hash *' (aka 'unsigned long *') [-Werror,-Wformat]
                sscanf(line, "%llu,%i,%i,%i", &frame_hash, &scene_id, &scene_scroll.x, &scene_scroll.y);
                              ~~~~            ^~~~~~~~~~~
                              %lu
Misc/wide_gb.c:218:57: error: format specifies type 'unsigned long long' but the argument has type 'WGB_exact_hash' (aka 'unsigned long') [-Werror,-Wformat]
                fprintf(frames_file, "%llu,%i,%i,%i\n", scene_frame->frame_hash, scene_frame->scene_id, scene_frame->scene_scroll.x, scene_frame->scene_scroll.y);
                                      ~~~~              ^~~~~~~~~~~~~~~~~~~~~~~
                                      %lu
2 errors generated.
make: *** [Makefile:162: build/obj/Misc/wide_gb.c.o] Error 1

(Thanks for enabling the issue tracker!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions