GithubHelp home page GithubHelp logo

Build fails on Sonoma 14.4.1 about ved HOT 10 CLOSED

mike-ward avatar mike-ward commented on August 11, 2024
Build fails on Sonoma 14.4.1

from ved.

Comments (10)

mike-ward avatar mike-ward commented on August 11, 2024 2

Awesome. I'm a retired C# programer (and C, C++) looking for a new passion project. Maybe I could lend a hand with this editor? Fooled around with Go, Kotlin and Swift writing a few phone apps after retiring, but desktop has always been my first love. So if you have any house keeping stuff I would be up for trying to contribute.

https://mike-ward.net

from ved.

Jeremy-JYL avatar Jeremy-JYL commented on August 11, 2024 1

I have the same issue on MacOs 14.1.1

from ved.

medvednikov avatar medvednikov commented on August 11, 2024 1

Fixed (both issues).

from ved.

medvednikov avatar medvednikov commented on August 11, 2024

argh apple breaking things again...

will update, test and fix

thanks

from ved.

mike-ward avatar mike-ward commented on August 11, 2024

I read the contributing docs. Very nice. Certainly enough there to get started

from ved.

mike-ward avatar mike-ward commented on August 11, 2024

I know everyone is very busy but it's been a few months without a working ved on mac. 🙏

from ved.

Jeremy-JYL avatar Jeremy-JYL commented on August 11, 2024

On the latest release, it seems like it v error

/Users/jeremy/programs/v/vlib/clipboard/clipboard_darwin.m:7:66: warning: 'NSStringPboardType' is deprecated: first deprecated in macOS 10.14 [-Wdeprecated-declarations]

Full error

In file included from /tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:1217:
/Users/jeremy/programs/v/thirdparty/sokol/sokol_app.h:4084:72: warning: 'NSBorderlessWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
                                                             styleMask:NSBorderlessWindowMask
                                                                       ^~~~~~~~~~~~~~~~~~~~~~
                                                                       NSWindowStyleMaskBorderless
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:1019:32: note: 'NSBorderlessWindowMask' has been explicitly marked deprecated here
static const NSWindowStyleMask NSBorderlessWindowMask API_DEPRECATED_WITH_REPLACEMENT("NSWindowStyleMaskBorderless", macos(10.0,10.12)) = NSWindowStyleMaskBorderless;
                               ^
In file included from /tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:5686:
/Users/jeremy/programs/ved/uiold/uiold.m:15:2: error: incompatible function pointer types passing 'void (*)(void *, void *, void *)' to parameter of type 'EventHandlerUPP' (aka 'int (*)(struct OpaqueEventHandlerCallRef *, struct OpaqueEventRef *, void *)') [-Wincompatible-function-pointer-types]
        InstallApplicationEventHandler(&focus_app, 1, &eventType, NULL, NULL);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEvents.h:15098:57: note: expanded from macro 'InstallApplicationEventHandler'
      InstallEventHandler( GetApplicationEventTarget(), (handler), (numTypes), (list), (userData), (outHandlerRef) )
                                                        ^~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:2594:26: note: passing argument to parameter 'inHandler' here
  EventHandlerUPP        inHandler,
                         ^
In file included from /tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:5709:
/Users/jeremy/programs/v/vlib/clipboard/clipboard_darwin.m:7:66: warning: 'NSStringPboardType' is deprecated: first deprecated in macOS 10.14 [-Wdeprecated-declarations]
        NSString *ns_clip = [((__bridge NSPasteboard*)pb) stringForType:NSStringPboardType]; //NSPasteboardTypeString
                                                                        ^~~~~~~~~~~~~~~~~~
                                                                        NSPasteboardTypeString
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:311:32: note: 'NSStringPboardType' has been explicitly marked deprecated here
APPKIT_EXTERN NSPasteboardType NSStringPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeString", macos(10.0,10.14));
                               ^
In file included from /tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:5709:
/Users/jeremy/programs/v/vlib/clipboard/clipboard_darwin.m:11:9: warning: returning 'NS_RETURNS_INNER_POINTER const char *' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        return [ns_clip UTF8String];
               ^~~~~~~~~~~~~~~~~~~~
/Users/jeremy/programs/v/vlib/clipboard/clipboard_darwin.m:17:44: warning: 'NSStringPboardType' is deprecated: first deprecated in macOS 10.14 [-Wdeprecated-declarations]
        [pb declareTypes:[NSArray arrayWithObject:NSStringPboardType] owner:nil];
                                                  ^~~~~~~~~~~~~~~~~~
                                                  NSPasteboardTypeString
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:311:32: note: 'NSStringPboardType' has been explicitly marked deprecated here
APPKIT_EXTERN NSPasteboardType NSStringPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeString", macos(10.0,10.14));
                               ^
In file included from /tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:5709:
/Users/jeremy/programs/v/vlib/clipboard/clipboard_darwin.m:18:43: warning: 'NSStringPboardType' is deprecated: first deprecated in macOS 10.14 [-Wdeprecated-declarations]
        bool ret = [pb setString:ns_clip forType:NSStringPboardType];
                                                 ^~~~~~~~~~~~~~~~~~
                                                 NSPasteboardTypeString
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:311:32: note: 'NSStringPboardType' has been explicitly marked deprecated here
APPKIT_EXTERN NSPasteboardType NSStringPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeString", macos(10.0,10.14));
                               ^
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:22049:4: warning: expression result unused [-Wunused-value]
  (*(string*)_t3.data);
   ^~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:24682:6: warning: initializing 'u8 *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        u8* utf8_clip = darwin_get_pasteboard_text(cb->pb);
            ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:28598:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t4.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:29019:4: warning: expression result unused [-Wunused-value]
  (*(string*)_t1.data);
   ^~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:30510:4: warning: expression result unused [-Wunused-value]
  (*(os__SignalHandler*)_t3.data);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:33243:20: warning: implicit conversion from enumeration type 'sokol__gfx__ShaderStage' to different enumeration type 'sg_shader_stage' (aka 'enum sg_shader_stage') [-Wenum-conversion]
        sg_apply_uniforms(stage, ub_index, data);
        ~~~~~~~~~~~~~~~~~ ^~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:33269:28: warning: implicit conversion from enumeration type 'sg_backend' (aka 'enum sg_backend') to different enumeration type 'sokol__gfx__Backend' [-Wenum-conversion]
        sokol__gfx__Backend _t1 = sg_query_backend();
                            ~~~   ^~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:33287:57: warning: implicit conversion from enumeration type 'sokol__gfx__PixelFormat' to different enumeration type 'sg_pixel_format' (aka 'enum sg_pixel_format') [-Wenum-conversion]
        sokol__gfx__PixelFormatInfo _t1 = sg_query_pixelformat(fmt);
                                          ~~~~~~~~~~~~~~~~~~~~ ^~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:33464:57: warning: implicit conversion from enumeration type 'sokol__gfx__ImageType' to different enumeration type 'sg_image_type' (aka 'enum sg_image_type') [-Wenum-conversion]
        desc->vs.images[v_fixed_index(index, 12)].image_type = sokol__gfx__ImageType___2d;
                                                             ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:33469:57: warning: implicit conversion from enumeration type 'sokol__gfx__ImageType' to different enumeration type 'sg_image_type' (aka 'enum sg_image_type') [-Wenum-conversion]
        desc->fs.images[v_fixed_index(index, 12)].image_type = sokol__gfx__ImageType___2d;
                                                             ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:33485:107: warning: implicit conversion from enumeration type 'sokol__gfx__UniformType' to different enumeration type 'sg_uniform_type' (aka 'enum sg_uniform_type') [-Wenum-conversion]
        desc->vs.uniform_blocks[v_fixed_index(block_index, 4)].uniforms[v_fixed_index(uniform_index, 16)].type = type;
                                                                                                               ~ ^~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:33491:107: warning: implicit conversion from enumeration type 'sokol__gfx__UniformType' to different enumeration type 'sg_uniform_type' (aka 'enum sg_uniform_type') [-Wenum-conversion]
        desc->fs.uniform_blocks[v_fixed_index(block_index, 4)].uniforms[v_fixed_index(uniform_index, 16)].type = type;
                                                                                                               ~ ^~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:33503:54: warning: implicit conversion from enumeration type 'sokol__gfx__ImageType' to different enumeration type 'sg_image_type' (aka 'enum sg_image_type') [-Wenum-conversion]
        desc->images[v_fixed_index(index, 12)].image_type = sokol__gfx__ImageType___2d;
                                                          ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:33589:103: warning: implicit conversion from enumeration type 'sokol__gfx__LoadAction' to different enumeration type 'sg_load_action' (aka 'enum sg_load_action') [-Wenum-conversion]
        sokol__gfx__ColorAttachmentAction color_action = ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__clear,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = r,.g = g,.b = b,.a = a,}),});
                                                                                             ~               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35373:33: warning: implicit conversion from enumeration type 'sokol__gfx__PixelFormat' to different enumeration type 'sg_pixel_format' (aka 'enum sg_pixel_format') [-Wenum-conversion]
        env.defaults.color_format =  (*(sokol__gfx__PixelFormat*)_t1.data);
                                  ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35380:33: warning: implicit conversion from enumeration type 'sokol__gfx__PixelFormat' to different enumeration type 'sg_pixel_format' (aka 'enum sg_pixel_format') [-Wenum-conversion]
        env.defaults.depth_format =  (*(sokol__gfx__PixelFormat*)_t2.data);
                                  ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35402:30: warning: implicit conversion from enumeration type 'sokol__gfx__PixelFormat' to different enumeration type 'sg_pixel_format' (aka 'enum sg_pixel_format') [-Wenum-conversion]
        swapchain.color_format =  (*(sokol__gfx__PixelFormat*)_t1.data);
                               ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35409:30: warning: implicit conversion from enumeration type 'sokol__gfx__PixelFormat' to different enumeration type 'sg_pixel_format' (aka 'enum sg_pixel_format') [-Wenum-conversion]
        swapchain.depth_format =  (*(sokol__gfx__PixelFormat*)_t2.data);
                               ~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35489:24: warning: implicit conversion from enumeration type 'sokol__sapp__MouseCursor' to different enumeration type 'sapp_mouse_cursor' (aka 'enum sapp_mouse_cursor') [-Wenum-conversion]
        sapp_set_mouse_cursor(cursor);
        ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35555:28: warning: passing 'u8 *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        sapp_set_clipboard_string(str);
                                  ^~~
/Users/jeremy/programs/v/thirdparty/sokol/sokol_app.h:11560:59: note: passing argument to parameter 'str' here
SOKOL_API_IMPL void sapp_set_clipboard_string(const char* str) {
                                                          ^
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35593:10: warning: initializing 'voidptr' (aka 'void *') with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        voidptr _t1 = sapp_metal_get_current_drawable();
                ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35598:10: warning: initializing 'voidptr' (aka 'void *') with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        voidptr _t1 = sapp_metal_get_depth_stencil_texture();
                ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35603:10: warning: initializing 'voidptr' (aka 'void *') with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        voidptr _t1 = sapp_metal_get_msaa_color_texture();
                ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35639:10: warning: initializing 'voidptr' (aka 'void *') with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        voidptr _t1 = sapp_d3d11_get_resolve_view();
                ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35656:10: warning: initializing 'voidptr' (aka 'void *') with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        voidptr _t1 = sapp_wgpu_get_device();
                ^     ~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35661:10: warning: initializing 'voidptr' (aka 'void *') with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        voidptr _t1 = sapp_wgpu_get_render_view();
                ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35666:10: warning: initializing 'voidptr' (aka 'void *') with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        voidptr _t1 = sapp_wgpu_get_resolve_view();
                ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35671:10: warning: initializing 'voidptr' (aka 'void *') with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        voidptr _t1 = sapp_wgpu_get_depth_stencil_view();
                ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35707:35: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                string _t1 = cstring_to_vstring(sapp_get_dropped_file_path(index));
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:18652:33: note: passing argument to parameter 's' here
string cstring_to_vstring(char* s) {
                                ^
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35719:179: warning: implicit conversion from enumeration type 'sapp_event_type' (aka 'enum sapp_event_type') to different enumeration type 'sokol__sapp__EventType' [-Wenum-conversion]
        string _t1 =  str_intp(3, _MOV((StrIntpData[]){{_SLIT("evt: frame_count="), 0xfe08, {.d_u64 = e->frame_count}}, {_SLIT(", type="), 0xfe10, {.d_s = sokol__sapp__EventType_str(e->type)}}, {_SLIT0, 0, { .d_c = 0 }}}));
                                                                                                                                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~^~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35796:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t3.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35809:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t5.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35822:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t7.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:35842:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t9.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:36876:216: warning: implicit conversion from enumeration type 'sokol__gfx__BlendFactor' to different enumeration type 'sg_blend_factor' (aka 'enum sg_blend_factor') [-Wenum-conversion]
        alpha_pipdesc.colors[0] = ((sokol__gfx__ColorTargetState){.pixel_format = 0,.write_mask = 0,.blend = ((sokol__gfx__BlendState){.enabled = true,.src_factor_rgb = sokol__gfx__BlendFactor__src_alpha,.dst_factor_rgb = sokol__gfx__BlendFactor__one_minus_src_alpha,.op_rgb = 0,.src_factor_alpha = 0,.dst_factor_alpha = 0,.op_alpha = 0,}),});
                                                                                                                                      ~                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:36876:163: warning: implicit conversion from enumeration type 'sokol__gfx__BlendFactor' to different enumeration type 'sg_blend_factor' (aka 'enum sg_blend_factor') [-Wenum-conversion]
        alpha_pipdesc.colors[0] = ((sokol__gfx__ColorTargetState){.pixel_format = 0,.write_mask = 0,.blend = ((sokol__gfx__BlendState){.enabled = true,.src_factor_rgb = sokol__gfx__BlendFactor__src_alpha,.dst_factor_rgb = sokol__gfx__BlendFactor__one_minus_src_alpha,.op_rgb = 0,.src_factor_alpha = 0,.dst_factor_alpha = 0,.op_alpha = 0,}),});
                                                                                                                                      ~                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:36881:214: warning: implicit conversion from enumeration type 'sokol__gfx__BlendFactor' to different enumeration type 'sg_blend_factor' (aka 'enum sg_blend_factor') [-Wenum-conversion]
        add_pipdesc.colors[0] = ((sokol__gfx__ColorTargetState){.pixel_format = 0,.write_mask = 0,.blend = ((sokol__gfx__BlendState){.enabled = true,.src_factor_rgb = sokol__gfx__BlendFactor__src_alpha,.dst_factor_rgb = sokol__gfx__BlendFactor__one,.op_rgb = 0,.src_factor_alpha = 0,.dst_factor_alpha = 0,.op_alpha = 0,}),});
                                                                                                                                    ~                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:36881:161: warning: implicit conversion from enumeration type 'sokol__gfx__BlendFactor' to different enumeration type 'sg_blend_factor' (aka 'enum sg_blend_factor') [-Wenum-conversion]
        add_pipdesc.colors[0] = ((sokol__gfx__ColorTargetState){.pixel_format = 0,.write_mask = 0,.blend = ((sokol__gfx__BlendState){.enabled = true,.src_factor_rgb = sokol__gfx__BlendFactor__src_alpha,.dst_factor_rgb = sokol__gfx__BlendFactor__one,.op_rgb = 0,.src_factor_alpha = 0,.dst_factor_alpha = 0,.op_alpha = 0,}),});
                                                                                                                                    ~                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37333:24: warning: passing 'u8 *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        sapp_set_window_title(title.str);
                              ^~~~~~~~~
/Users/jeremy/programs/v/thirdparty/sokol/sokol_app.h:11593:55: note: passing argument to parameter 'title' here
SOKOL_API_IMPL void sapp_set_window_title(const char* title) {
                                                      ^
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37432:232: warning: initializing 'const char *' with an expression of type 'u8 *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        sokol__gfx__ImageDesc img_desc = ((sokol__gfx__ImageDesc){.type = 0,.render_target = 0,.width = img->width,.height = img->height,.num_slices = 0,.num_mipmaps = 0,.usage = 0,.pixel_format = 0,.sample_count = 0,.data = {0},.label = img->path.str,.gl_textures = {0, 0},.gl_texture_target = 0,.mtl_textures = {0, 0},.d3d11_texture = 0,.d3d11_shader_resource_view = 0,.wgpu_texture = 0,});
                                                                                                                                                                                                                                              ^~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37436:217: warning: implicit conversion from enumeration type 'sokol__gfx__Wrap' to different enumeration type 'sg_wrap' (aka 'enum sg_wrap') [-Wenum-conversion]
        sokol__gfx__SamplerDesc smp_desc = ((sokol__gfx__SamplerDesc){.min_filter = sokol__gfx__Filter__linear,.mag_filter = sokol__gfx__Filter__linear,.mipmap_filter = 0,.wrap_u = sokol__gfx__Wrap__clamp_to_edge,.wrap_v = sokol__gfx__Wrap__clamp_to_edge,.wrap_w = 0,.min_lod = 0,.max_lod = 0,.border_color = 0,.compare = 0,.max_anisotropy = 0,.label = 0,.gl_sampler = 0,.mtl_sampler = 0,.d3d11_sampler = 0,.wgpu_sampler = 0,});
                                                                     ~                                                                                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37436:175: warning: implicit conversion from enumeration type 'sokol__gfx__Wrap' to different enumeration type 'sg_wrap' (aka 'enum sg_wrap') [-Wenum-conversion]
        sokol__gfx__SamplerDesc smp_desc = ((sokol__gfx__SamplerDesc){.min_filter = sokol__gfx__Filter__linear,.mag_filter = sokol__gfx__Filter__linear,.mipmap_filter = 0,.wrap_u = sokol__gfx__Wrap__clamp_to_edge,.wrap_v = sokol__gfx__Wrap__clamp_to_edge,.wrap_w = 0,.min_lod = 0,.max_lod = 0,.border_color = 0,.compare = 0,.max_anisotropy = 0,.label = 0,.gl_sampler = 0,.mtl_sampler = 0,.d3d11_sampler = 0,.wgpu_sampler = 0,});
                                                                     ~                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37436:119: warning: implicit conversion from enumeration type 'sokol__gfx__Filter' to different enumeration type 'sg_filter' (aka 'enum sg_filter') [-Wenum-conversion]
        sokol__gfx__SamplerDesc smp_desc = ((sokol__gfx__SamplerDesc){.min_filter = sokol__gfx__Filter__linear,.mag_filter = sokol__gfx__Filter__linear,.mipmap_filter = 0,.wrap_u = sokol__gfx__Wrap__clamp_to_edge,.wrap_v = sokol__gfx__Wrap__clamp_to_edge,.wrap_w = 0,.min_lod = 0,.max_lod = 0,.border_color = 0,.compare = 0,.max_anisotropy = 0,.label = 0,.gl_sampler = 0,.mtl_sampler = 0,.d3d11_sampler = 0,.wgpu_sampler = 0,});
                                                                     ~                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37436:78: warning: implicit conversion from enumeration type 'sokol__gfx__Filter' to different enumeration type 'sg_filter' (aka 'enum sg_filter') [-Wenum-conversion]
        sokol__gfx__SamplerDesc smp_desc = ((sokol__gfx__SamplerDesc){.min_filter = sokol__gfx__Filter__linear,.mag_filter = sokol__gfx__Filter__linear,.mipmap_filter = 0,.wrap_u = sokol__gfx__Wrap__clamp_to_edge,.wrap_v = sokol__gfx__Wrap__clamp_to_edge,.wrap_w = 0,.min_lod = 0,.max_lod = 0,.border_color = 0,.compare = 0,.max_anisotropy = 0,.label = 0,.gl_sampler = 0,.mtl_sampler = 0,.d3d11_sampler = 0,.wgpu_sampler = 0,});
                                                                     ~              ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37463:12: warning: initializing 'const char *' with an expression of type 'u8 *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
                .label = (*(img)).path.str,
                         ^~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37460:25: warning: implicit conversion from enumeration type 'sokol__gfx__PixelFormat' to different enumeration type 'sg_pixel_format' (aka 'enum sg_pixel_format') [-Wenum-conversion]
                .pixel_format = sicfg.pixel_format,
                                ~~~~~~^~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37459:12: warning: implicit conversion from enumeration type 'sokol__gfx__Usage' to different enumeration type 'sg_usage' (aka 'enum sg_usage') [-Wenum-conversion]
                .usage = sokol__gfx__Usage__stream,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37473:184: warning: implicit conversion from enumeration type 'sokol__gfx__Wrap' to different enumeration type 'sg_wrap' (aka 'enum sg_wrap') [-Wenum-conversion]
        sokol__gfx__SamplerDesc smp_desc = ((sokol__gfx__SamplerDesc){.min_filter = sicfg.min_filter,.mag_filter = sicfg.mag_filter,.mipmap_filter = 0,.wrap_u = sicfg.wrap_u,.wrap_v = sicfg.wrap_v,.wrap_w = 0,.min_lod = 0,.max_lod = 0,.border_color = 0,.compare = 0,.max_anisotropy = 0,.label = 0,.gl_sampler = 0,.mtl_sampler = 0,.d3d11_sampler = 0,.wgpu_sampler = 0,});
                                                                     ~                                                                                                                  ~~~~~~^~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37473:161: warning: implicit conversion from enumeration type 'sokol__gfx__Wrap' to different enumeration type 'sg_wrap' (aka 'enum sg_wrap') [-Wenum-conversion]
        sokol__gfx__SamplerDesc smp_desc = ((sokol__gfx__SamplerDesc){.min_filter = sicfg.min_filter,.mag_filter = sicfg.mag_filter,.mipmap_filter = 0,.wrap_u = sicfg.wrap_u,.wrap_v = sicfg.wrap_v,.wrap_w = 0,.min_lod = 0,.max_lod = 0,.border_color = 0,.compare = 0,.max_anisotropy = 0,.label = 0,.gl_sampler = 0,.mtl_sampler = 0,.d3d11_sampler = 0,.wgpu_sampler = 0,});
                                                                     ~                                                                                           ~~~~~~^~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37473:115: warning: implicit conversion from enumeration type 'sokol__gfx__Filter' to different enumeration type 'sg_filter' (aka 'enum sg_filter') [-Wenum-conversion]
        sokol__gfx__SamplerDesc smp_desc = ((sokol__gfx__SamplerDesc){.min_filter = sicfg.min_filter,.mag_filter = sicfg.mag_filter,.mipmap_filter = 0,.wrap_u = sicfg.wrap_u,.wrap_v = sicfg.wrap_v,.wrap_w = 0,.min_lod = 0,.max_lod = 0,.border_color = 0,.compare = 0,.max_anisotropy = 0,.label = 0,.gl_sampler = 0,.mtl_sampler = 0,.d3d11_sampler = 0,.wgpu_sampler = 0,});
                                                                     ~                                             ~~~~~~^~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:37473:84: warning: implicit conversion from enumeration type 'sokol__gfx__Filter' to different enumeration type 'sg_filter' (aka 'enum sg_filter') [-Wenum-conversion]
        sokol__gfx__SamplerDesc smp_desc = ((sokol__gfx__SamplerDesc){.min_filter = sicfg.min_filter,.mag_filter = sicfg.mag_filter,.mipmap_filter = 0,.wrap_u = sicfg.wrap_u,.wrap_v = sicfg.wrap_v,.wrap_w = 0,.min_lod = 0,.max_lod = 0,.border_color = 0,.compare = 0,.max_anisotropy = 0,.label = 0,.gl_sampler = 0,.mtl_sampler = 0,.d3d11_sampler = 0,.wgpu_sampler = 0,});
                                                                     ~              ~~~~~~^~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:39440:4: warning: expression result unused [-Wunused-value]
  (*(time__Time*)_t6.data);
   ^~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:39471:4: warning: expression result unused [-Wunused-value]
  (*(time__Time*)_t5.data);
   ^~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:39497:4: warning: expression result unused [-Wunused-value]
  (*(time__Time*)_t3.data);
   ^~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:40098:4: warning: expression result unused [-Wunused-value]
  (*(toml__token__Token*)_t1.data);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:40107:4: warning: expression result unused [-Wunused-value]
  (*(toml__token__Token*)_t3.data);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:40584:6: warning: expression result unused [-Wunused-value]
                                (*(string*)array_pop(&dotted_key_copy));
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:43894:4: warning: expression result unused [-Wunused-value]
  (*(string*)_t2.data);
   ^~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:45078:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t3.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:45089:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t5.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:45097:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t7.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:45105:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t9.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:45114:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t11.data);
   ^~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:47029:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t2.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:47051:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t5.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:47077:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t2.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:47086:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t3.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:47626:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t3.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:48835:664: warning: implicit conversion from enumeration type 'sokol__gfx__LoadAction' to different enumeration type 'sg_load_action' (aka 'enum sg_load_action') [-Wenum-conversion]
        _const_gg__dontcare_pass = ((sokol__gfx__PassAction){.colors = {((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),})},.depth = {0},.stencil = {0},});
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ~               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:48835:482: warning: implicit conversion from enumeration type 'sokol__gfx__LoadAction' to different enumeration type 'sg_load_action' (aka 'enum sg_load_action') [-Wenum-conversion]
        _const_gg__dontcare_pass = ((sokol__gfx__PassAction){.colors = {((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),})},.depth = {0},.stencil = {0},});
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ~               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:48835:300: warning: implicit conversion from enumeration type 'sokol__gfx__LoadAction' to different enumeration type 'sg_load_action' (aka 'enum sg_load_action') [-Wenum-conversion]
        _const_gg__dontcare_pass = ((sokol__gfx__PassAction){.colors = {((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),})},.depth = {0},.stencil = {0},});
                                                                                                                                                                                                                                                                                                  ~               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01J2BS029KKJAE9N6TP3CJ351E.tmp.c:48835:118: warning: implicit conversion from enumeration type 'sokol__gfx__LoadAction' to different enumeration type 'sg_load_action' (aka 'enum sg_load_action') [-Wenum-conversion]
        _const_gg__dontcare_pass = ((sokol__gfx__PassAction){.colors = {((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),}), ((sokol__gfx__ColorAttachmentAction){.load_action = sokol__gfx__LoadAction__dontcare,.store_action = 0,.clear_value = ((sokol__gfx__Color){.r = 1.0,.g = 1.0,.b = 1.0,.a = 1.0,}),})},.depth = {0},.stencil = {0},});
                                                                                                            ~               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
77 warnings and 1 error generated.

from ved.

medvednikov avatar medvednikov commented on August 11, 2024

Sorry about that, build it with

v -cflags "-Wno-incompatible-function-pointer-types" . && ./ved

for now

from ved.

medvednikov avatar medvednikov commented on August 11, 2024

Apple breaking things as usual in new OS/clang releases :)
Will fix this soon.

from ved.

mike-ward avatar mike-ward commented on August 11, 2024

Seeing this on Linux and Mac

Mikes-Air➜  ved : master ✔ : ᐅ  v -cflags "-Wno-incompatible-function-pointer-types" . && ./ved
size=gg.Size{
    width: 1710
    height: 1107
}
screen_width=1710
MAX=880
height=1107
loading syntax files...
V panic: the builtin syntax file can not be decoded
v hash: 66ea826
0   ved                                 0x0000000102a453a8 main__Ved_load_syntaxes + 212
1   ved                                 0x0000000102a477c4 main__main + 2924
2   ved                                 0x0000000102a562cc main + 84
3   dyld                                0x000000018269a0e0 start + 2360```

from ved.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.