[Bug 38337] New: clang compiling warnings

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Apr 1 09:54:27 CDT 2015


https://bugs.winehq.org/show_bug.cgi?id=38337

            Bug ID: 38337
           Summary: clang compiling warnings
           Product: Wine
           Version: 1.7.39
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: isakov-sl at bk.ru
      Distribution: ---

Wine1.7.39-251-gdbf8bde compiled by Apple's clang. The wine works somehow.
There are hundreds warning so I show them in one bug although there are many
possible bugs.
----
keyboard.c:287:2: warning: illegal character encoding in string literal
      [-Winvalid-source-encoding]
 "?","&1","?2","\"3","'4","(5","-6","?7","_8","?9","?0",")?","=+",
 ^
----
cocoa_status_item.m:100:13: warning: instance method
'-discardEventsPassingTest:'
      not found (return type defaults to 'id')
            [queue discardEventsPassingTest:^BOOL (macdrv_event* event){
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
----
imgfactory.c:715:88: warning: implicit conversion from enumeration type
      'WICBitmapAlphaChannelOption' (aka 'enum WICBitmapAlphaChannelOption') to
      different enumeration type 'WICBitmapCreateCacheOption' (aka 'enum
      WICBitmapCreateCacheOption') [-Wconversion]
  ...BitmapImpl_Create(bm.bmWidth, bm.bmHeight, bm.bmWidthBytes, 0, NULL,
&format, option,...
     ~~~~~~~~~~~~~~~~~                                                         
   ^~~~~~
-----
display.c:225:24: warning: unused function 'create_mode_dict'
[-Wunused-function]
static CFDictionaryRef create_mode_dict(CGDisplayModeRef display_mode)
                       ^
1 warning generated.
-----
node.c:1620:37: warning: implicit conversion from enumeration type
      'xmlElementType' to different enumeration type 'DOMNodeType' (aka
      'enum tagDOMNodeType') [-Wconversion]
    *domNodeType = This->node.node->type;
                 ~ ~~~~~~~~~~~~~~~~~^~~~
1 warning generated.
-----
locale.c:11344:13: warning: unknown attribute '__force_align_arg_pointer__'
      ignored [-Wattributes]
            call_locale_facet_vector_dtor(iter->fac, 1);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
locale.c:246:52: note: expanded from macro 'call_locale_facet_vector_dtor'
#define call_locale_facet_vector_dtor(this, flags) CALL_VTBL_FUNC(this, 0, \
                                                   ^
./cxx.h:269:59: note: expanded from macro 'CALL_VTBL_FUNC'
#define CALL_VTBL_FUNC(this, off, ret, type, args) ((ret (WINAPI*...
                                                          ^
../../include/windef.h:169:21: note: expanded from macro 'WINAPI'
#define WINAPI      __stdcall
                    ^
../../include/msvcrt/crtdefs.h:48:67: note: expanded from macro '__stdcall'
  ...__attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
-----
mach.c:93:9: warning: 'bootstrap_register' is deprecated
      [-Wdeprecated-declarations]
    if (bootstrap_register(bp, (char*)wine_get_server_dir(), ...
        ^
----
warning: Small Fonts 11: missing glyph for char 05b0
----
file.c:2124:49: warning: array index 1 is past the end of the array
      (which contains 1 element) [-Warray-bounds]
                dir_info->FileName[0] == '.' && dir_info->FileName[1] == ...
                                                ^                  ~
../../include/winternl.h:495:5: note: array 'FileName' declared here
    WCHAR               FileName[ANYSIZE_ARRAY];
    ^
1 warning generated.
----

I omitted same warnings repeated many times.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list