vlang / ved

1 MB text editor written in V with hardware accelerated text rendering. Compiles in <1s.
GNU General Public License v3.0
1.34k stars 78 forks source link

Build fails on Sonoma 14.4.1 #183

Open mike-ward opened 1 week ago

mike-ward commented 1 week ago
v -cg .
In file included from /tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:1200:
/Users/mike/Documents/github/v/thirdparty/sokol/sokol_app.h:4083:72: warning: 'NSBorderlessWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
                                                             styleMask:NSBorderlessWindowMask
                                                                       ^~~~~~~~~~~~~~~~~~~~~~
                                                                       NSWindowStyleMaskBorderless
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:5659:
/Users/mike/Documents/github/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);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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) )
                                                        ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:5682:
/Users/mike/Documents/github/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
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:5682:
/Users/mike/Documents/github/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/mike/Documents/github/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
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:5682:
/Users/mike/Documents/github/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
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:21893:4: warning: expression result unused [-Wunused-value]
  (*(string*)_t3.data);
   ^~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:24521: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:28798:4: warning: expression result unused [-Wunused-value]
  (*(string*)_t1.data);
   ^~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:30257:4: warning: expression result unused [-Wunused-value]
  (*(os__SignalHandler*)_t3.data);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:32990: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:33016: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:33034: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:33211: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:33216: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:33232: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:33238: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:33250: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:33336: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35003: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35010: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35032: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35039: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35119: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35185: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/mike/Documents/github/v/thirdparty/sokol/sokol_app.h:11549:59: note: passing argument to parameter 'str' here
SOKOL_API_IMPL void sapp_set_clipboard_string(const char* str) {
                                                          ^
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35223: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35228: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35233: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35269: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35286: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35291: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35296: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35301: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35337: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:18605:33: note: passing argument to parameter 's' here
string cstring_to_vstring(char* s) {
                                ^
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35349: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35426:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t3.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35439:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t5.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35452:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t7.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:35472:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t9.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:36455: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:36455: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:36460: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:36460: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:36912: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/mike/Documents/github/v/thirdparty/sokol/sokol_app.h:11582:55: note: passing argument to parameter 'title' here
SOKOL_API_IMPL void sapp_set_window_title(const char* title) {
                                                      ^
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37011: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37015: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37015: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37015: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37015: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37042: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37039: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37038: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37052: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37052: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37052: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:37052: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:39019:4: warning: expression result unused [-Wunused-value]
  (*(time__Time*)_t6.data);
   ^~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:39050:4: warning: expression result unused [-Wunused-value]
  (*(time__Time*)_t5.data);
   ^~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:39076:4: warning: expression result unused [-Wunused-value]
  (*(time__Time*)_t3.data);
   ^~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:39682:4: warning: expression result unused [-Wunused-value]
  (*(toml__token__Token*)_t1.data);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:39691:4: warning: expression result unused [-Wunused-value]
  (*(toml__token__Token*)_t3.data);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:40165:6: warning: expression result unused [-Wunused-value]
                                (*(string*)array_pop(&dotted_key_copy));
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:43474:4: warning: expression result unused [-Wunused-value]
  (*(string*)_t2.data);
   ^~~~~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:44658:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t3.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:44669:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t5.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:44677:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t7.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:44685:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t9.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:44694:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t11.data);
   ^~~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:46529:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t2.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:46551:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t5.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:46577:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t2.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:46586:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t3.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:47115:4: warning: expression result unused [-Wunused-value]
  (*(int*)_t3.data);
   ^~~~~~~~~~~~~~~
/tmp/v_501/ved.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:48319: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:48319: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:48319: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.01HWE8VN4E8DTS5KY7MT118SAJ.tmp.c:48319: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},});
                                                                                                            ~               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76 warnings and 1 error generated.
builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .
medvednikov commented 1 week ago

argh apple breaking things again...

will update, test and fix

thanks

mike-ward commented 1 week ago

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

mike-ward commented 1 week ago

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