Advertisement
Guest User

Compilation warnings in GCC 6

a guest
Aug 11th, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 17.01 KB | None | 0 0
  1. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3124:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  2.  if (0) /* crashes on native */
  3.  ^~
  4. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3126:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  5.      os1.base_ios.sb = &fb2.base;
  6.      ^~~
  7. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3180:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  8.  if (0) /* crashes on native */
  9.  ^~
  10. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3182:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  11.      os2.base_ios.sb = &fb2.base;
  12.      ^~~
  13. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3247:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  14.  if (0) /* crashes on native */
  15.  ^~
  16. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3249:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  17.      os1.base_ios.sb = &fb1.base;
  18.      ^~~
  19. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3279:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  20.  if (0) /* crashes on native */
  21.  ^~
  22. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3281:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  23.      os1.base_ios.sb = &fb1.base;
  24.      ^~~
  25. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3395:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  26.  if (0) /* crashes on native */
  27.  ^~
  28. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3397:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  29.      pos = call_func3(p_ostream_writepad, &os1, "", "hello");
  30.      ^~~
  31. ../../../../wine/dlls/msvcirt/tests/msvcirt.c: In function ‘test_ostream_withassign’:
  32. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3858:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  33.  if (0) /* crashes on native */
  34.  ^~
  35. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:3860:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  36.      posa = call_func2(p_ostream_withassign_assign_sb, &osa1, &sb);
  37.      ^~~~
  38. ../../../../wine/dlls/msvcirt/tests/msvcirt.c: In function ‘test_istream’:
  39. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4038:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  40.  if (0) /* crashes on native */
  41.  ^~
  42. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4040:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  43.      is2.extract_delim = is2.count = 0xabababab;
  44.      ^~~
  45. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4074:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  46.  if (0) /* crashes on native */
  47.  ^~
  48. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4076:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  49.      is1.base_ios.state = IOSTATE_badbit;
  50.      ^~~
  51. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4142:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  52.  if (0) /* crashes on native */
  53.  ^~
  54. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4144:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  55.      is1.base_ios.state = IOSTATE_goodbit;
  56.      ^~~
  57. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4409:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  58.  if (0) /* crashes on native */
  59.  ^~
  60. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4413:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  61.      is1.extract_delim = is1.count = 0xabababab;
  62.      ^~~
  63. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4547:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  64.  if (0) /* crashes on native */
  65.  ^~
  66. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4549:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  67.      fb1.base.gptr = fb1.base.base + 30;
  68.      ^~~
  69. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4659:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  70.  if (0) /* crashes on native */
  71.  ^~
  72. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4661:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  73.      *fb1.base.gptr = -50;
  74.      ^
  75. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4853:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  76.  if (0) /* crashes on native */
  77.  ^~
  78. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4855:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  79.      fb1.base.gptr = fb1.base.base + 14;
  80.      ^~~
  81. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4898:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  82.  if (0) /* crashes on native */
  83.  ^~
  84. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4900:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  85.      pis = call_func2(p_istream_putback, &is1, -40);
  86.      ^~~
  87. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4956:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  88.  if (0) /* crashes on native */
  89.  ^~
  90. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4958:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  91.      is1.base_ios.state = IOSTATE_goodbit;
  92.      ^~~
  93. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4962:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  94.  if (0) /* crashes on native */
  95.  ^~
  96. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4964:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  97.      pis = call_func3(p_istream_read, &is1, buffer, 0);
  98.      ^~~
  99. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4978:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  100.  if (0) /* crashes on native */
  101.  ^~
  102. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:4980:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  103.      pis = call_func2(p_istream_seekg, &is1, -5);
  104.      ^~~
  105. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:5011:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  106.  if (0) /* crashes on native */
  107.  ^~
  108. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:5013:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  109.      fb1.base.gptr = fb1.base.egptr;
  110.      ^~~
  111. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:5032:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  112.  if (0) /* crashes on native */
  113.  ^~
  114. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:5034:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  115.      fb1.base.eback = fb1.base.gptr = fb1.base.base;
  116.      ^~~
  117. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:5065:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  118.  if (0) /* crashes on native */
  119.  ^~
  120. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:5067:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  121.      fb1.base.eback = fb1.base.gptr = fb1.base.base;
  122.      ^~~
  123. ../../../../wine/dlls/msvcirt/tests/msvcirt.c: In function ‘test_iostream’:
  124. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:6017:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  125.  if (0) /* crashes on native */
  126.  ^~
  127. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:6019:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  128.      pios = call_func2(p_iostream_assign, &ios2, &ios1);
  129.      ^~~~
  130. ../../../../wine/dlls/msvcirt/tests/msvcirt.c: In function ‘test_strstreambuf’:
  131. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:1982:33: warning: array subscript is above array bounds [-Warray-bounds]
  132.      ok(ssb1.base.ebuf == buffer + 0x7fffffff || ssb1.base.ebuf == (char*)-1,
  133.                           ~~~~~~~^~~~~~~~~~~~
  134. ../../../../wine/dlls/msvcirt/tests/msvcirt.c:1989:34: warning: array subscript is above array bounds [-Warray-bounds]
  135.      ok(ssb1.base.epptr == buffer + 0x7fffffff || ssb1.base.epptr == (char*)-1,
  136.  
  137.  
  138. ../../../../wine/dlls/msvcrt/tests/cpp.c: In function ‘test_rtti’:
  139. ../../../../wine/dlls/msvcrt/tests/cpp.c:1085:48: warning: array subscript is above array bounds [-Warray-bounds]
  140.    ok(casted == (char*)&virtual_base_class+0x110+sizeof(void*), "failed cast to child class (%p %p)\n", casted, &virtual_base_class);
  141.  
  142. ../../../../wine/dlls/oleaut32/tests/safearray.c: In function ‘test_safearray’:
  143. ../../../../wine/dlls/oleaut32/tests/safearray.c:708:5: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  144.      if (!pSafeArrayAllocDescriptorEx)
  145.      ^~
  146. ../../../../wine/dlls/oleaut32/tests/safearray.c:711:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  147.   for (i=0;i<sizeof(vttypes)/sizeof(vttypes[0]);i++) {
  148.  
  149. ../../../../wine/dlls/shell32/tests/shellole.c: In function ‘test_SHCreateSessionKey’:
  150. ../../../../wine/dlls/shell32/tests/shellole.c:874:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  151.  if (0) /* crashes on native */
  152.  ^~
  153. ../../../../wine/dlls/shell32/tests/shellole.c:877:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  154.      hkey = (HKEY)0xdeadbeef;
  155.  
  156. ../../../../wine/dlls/shlwapi/tests/ordinal.c: In function ‘test_IUnknown_GetClassID’:
  157. ../../../../wine/dlls/shlwapi/tests/ordinal.c:3227:1: warning: thisif’ clause does not guard... [-Wmisleading-indentation]
  158.  if (0) /* crashes on native systems */
  159.  ^~
  160. ../../../../wine/dlls/shlwapi/tests/ordinal.c:3230:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if
  161.      memset(&clsid, 0xcc, sizeof(clsid));
  162.      ^~~~~~
  163.  
  164. In file included from /usr/include/glib-2.0/gobject/gobject.h:26:0,
  165.                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
  166.                  from /usr/include/glib-2.0/glib-object.h:23,
  167.                  from /usr/include/gstreamer-1.0/gst/gstenumtypes.h:7,
  168.                  from /usr/include/gstreamer-1.0/gst/gst.h:31,
  169.                  from ../../../wine/dlls/winegstreamer/gst_cbs.c:21:
  170. /usr/include/glib-2.0/gobject/gparam.h:166:35: warning: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=]
  171.    G_PARAM_DEPRECATED          = 1 << 31
  172.                                    ^~
  173. In file included from /usr/include/gstreamer-1.0/gst/gstevent.h:184:0,
  174.                  from /usr/include/gstreamer-1.0/gst/gstpadtemplate.h:36,
  175.                  from /usr/include/gstreamer-1.0/gst/gstpad.h:72,
  176.                  from /usr/include/gstreamer-1.0/gst/gstelement.h:57,
  177.                  from /usr/include/gstreamer-1.0/gst/gstbin.h:27,
  178.                  from /usr/include/gstreamer-1.0/gst/gst.h:35,
  179.                  from ../../../wine/dlls/winegstreamer/gst_cbs.c:21:
  180. /usr/include/gstreamer-1.0/gst/gstmessage.h:156:38: warning: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=]
  181.    GST_MESSAGE_EXTENDED          = (1 << 31),
  182.                                       ^~
  183. gcc -m32 -c -o gstdemux.o ../../../wine/dlls/winegstreamer/gstdemux.c -I. -I../../../wine/dlls/winegstreamer \
  184.   -I../../include -I../../../wine/include -I/usr/include/gstreamer-1.0 \
  185.   -I/usr/lib32/gstreamer-1.0/include -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include \
  186.   -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement \
  187.   -Wempty-body -Wignored-qualifiers -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  188.   -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op \
  189.   -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
  190. In file included from /usr/include/glib-2.0/gobject/gobject.h:26:0,
  191.                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
  192.                  from /usr/include/glib-2.0/glib-object.h:23,
  193.                  from /usr/include/gstreamer-1.0/gst/gstenumtypes.h:7,
  194.                  from /usr/include/gstreamer-1.0/gst/gst.h:31,
  195.                  from ../../../wine/dlls/winegstreamer/gstdemux.c:24:
  196. /usr/include/glib-2.0/gobject/gparam.h:166:35: warning: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=]
  197.    G_PARAM_DEPRECATED          = 1 << 31
  198.                                    ^~
  199. In file included from /usr/include/gstreamer-1.0/gst/gstevent.h:184:0,
  200.                  from /usr/include/gstreamer-1.0/gst/gstpadtemplate.h:36,
  201.                  from /usr/include/gstreamer-1.0/gst/gstpad.h:72,
  202.                  from /usr/include/gstreamer-1.0/gst/gstelement.h:57,
  203.                  from /usr/include/gstreamer-1.0/gst/gstbin.h:27,
  204.                  from /usr/include/gstreamer-1.0/gst/gst.h:35,
  205.                  from ../../../wine/dlls/winegstreamer/gstdemux.c:24:
  206. /usr/include/gstreamer-1.0/gst/gstmessage.h:156:38: warning: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=]
  207.    GST_MESSAGE_EXTENDED          = (1 << 31),
  208.  
  209. In file included from /usr/include/glib-2.0/gobject/gobject.h:26:0,
  210.                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
  211.                  from /usr/include/glib-2.0/glib-object.h:23,
  212.                  from /usr/include/gstreamer-1.0/gst/gstenumtypes.h:7,
  213.                  from /usr/include/gstreamer-1.0/gst/gst.h:31,
  214.                  from ../../../wine/dlls/winegstreamer/gsttffilter.c:25:
  215. /usr/include/glib-2.0/gobject/gparam.h:166:35: warning: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=]
  216.    G_PARAM_DEPRECATED          = 1 << 31
  217.                                    ^~
  218. In file included from /usr/include/gstreamer-1.0/gst/gstevent.h:184:0,
  219.                  from /usr/include/gstreamer-1.0/gst/gstpadtemplate.h:36,
  220.                  from /usr/include/gstreamer-1.0/gst/gstpad.h:72,
  221.                  from /usr/include/gstreamer-1.0/gst/gstelement.h:57,
  222.                  from /usr/include/gstreamer-1.0/gst/gstbin.h:27,
  223.                  from /usr/include/gstreamer-1.0/gst/gst.h:35,
  224.                  from ../../../wine/dlls/winegstreamer/gsttffilter.c:25:
  225. /usr/include/gstreamer-1.0/gst/gstmessage.h:156:38: warning: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=]
  226.    GST_MESSAGE_EXTENDED          = (1 << 31),
  227.                                       ^~
  228. gcc -m32 -c -o main.o ../../../wine/dlls/winegstreamer/main.c -I. -I../../../wine/dlls/winegstreamer \
  229.   -I../../include -I../../../wine/include -I/usr/include/gstreamer-1.0 \
  230.   -I/usr/lib32/gstreamer-1.0/include -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include \
  231.   -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement \
  232.   -Wempty-body -Wignored-qualifiers -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  233.   -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op \
  234.   -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
  235. In file included from /usr/include/glib-2.0/gobject/gobject.h:26:0,
  236.                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
  237.                  from /usr/include/glib-2.0/glib-object.h:23,
  238.                  from /usr/include/gstreamer-1.0/gst/gstenumtypes.h:7,
  239.                  from /usr/include/gstreamer-1.0/gst/gst.h:31,
  240.                  from ../../../wine/dlls/winegstreamer/main.c:25:
  241. /usr/include/glib-2.0/gobject/gparam.h:166:35: warning: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=]
  242.    G_PARAM_DEPRECATED          = 1 << 31
  243.                                    ^~
  244. In file included from /usr/include/gstreamer-1.0/gst/gstevent.h:184:0,
  245.                  from /usr/include/gstreamer-1.0/gst/gstpadtemplate.h:36,
  246.                  from /usr/include/gstreamer-1.0/gst/gstpad.h:72,
  247.                  from /usr/include/gstreamer-1.0/gst/gstelement.h:57,
  248.                  from /usr/include/gstreamer-1.0/gst/gstbin.h:27,
  249.                  from /usr/include/gstreamer-1.0/gst/gst.h:35,
  250.                  from ../../../wine/dlls/winegstreamer/main.c:25:
  251. /usr/include/gstreamer-1.0/gst/gstmessage.h:156:38: warning: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=]
  252.    GST_MESSAGE_EXTENDED          = (1 << 31),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement