[devel] gcc emits too many warnings after fatal errors

Alexey Tourbin =?iso-8859-1?q?at_=CE=C1_altlinux=2Eru?=
Вс Май 28 17:35:05 MSD 2006


Ниже приведен кусос лога пересборки dia.  После обнаружения фатальных
ошибок gcc считает своим долгом в нагрузку выдать пачку warning'ов
общем объемом более 100 строк.  Это очень усложняет обработку логов.

:r!ssh basalt tail -200 /raid/beehive/error/dia-0.94-alt12cvs20051206
../../lib/dia_xml.h:85: error: initializer expression list treated as compound expression
../../lib/dia_xml.h:86: error: variable or field 'data_add_real' declared void
../../lib/dia_xml.h:86: error: 'AttributeNode' was not declared in this scope
../../lib/dia_xml.h:86: error: expected primary-expression before 'data'
../../lib/dia_xml.h:86: error: initializer expression list treated as compound expression
../../lib/dia_xml.h:87: error: variable or field 'data_add_boolean' declared void
../../lib/dia_xml.h:87: error: 'AttributeNode' was not declared in this scope
../../lib/dia_xml.h:87: error: expected primary-expression before 'int'
../../lib/dia_xml.h:87: error: initializer expression list treated as compound expression
../../lib/dia_xml.h:88: error: variable or field 'data_add_color' declared void
../../lib/dia_xml.h:88: error: 'AttributeNode' was not declared in this scope
../../lib/dia_xml.h:88: error: expected primary-expression before 'const'
../../lib/dia_xml.h:88: error: initializer expression list treated as compound expression
../../lib/dia_xml.h:89: error: variable or field 'data_add_point' declared void
../../lib/dia_xml.h:89: error: 'AttributeNode' was not declared in this scope
../../lib/dia_xml.h:89: error: expected primary-expression before 'const'
../../lib/dia_xml.h:89: error: initializer expression list treated as compound expression
../../lib/dia_xml.h:90: error: variable or field 'data_add_rectangle' declared void
../../lib/dia_xml.h:90: error: 'AttributeNode' was not declared in this scope
../../lib/dia_xml.h:90: error: expected primary-expression before 'const'
../../lib/dia_xml.h:90: error: initializer expression list treated as compound expression
../../lib/dia_xml.h:91: error: variable or field 'data_add_string' declared void
../../lib/dia_xml.h:91: error: 'AttributeNode' was not declared in this scope
../../lib/dia_xml.h:91: error: expected primary-expression before 'const'
../../lib/dia_xml.h:91: error: initializer expression list treated as compound expression
../../lib/dia_xml.h:92: error: variable or field 'data_add_filename' declared void
../../lib/dia_xml.h:92: error: 'AttributeNode' was not declared in this scope
../../lib/dia_xml.h:92: error: expected primary-expression before 'const'
../../lib/dia_xml.h:92: error: initializer expression list treated as compound expression
../../lib/dia_xml.h:93: error: variable or field 'data_add_font' declared void
../../lib/dia_xml.h:93: error: 'AttributeNode' was not declared in this scope
../../lib/dia_xml.h:93: error: expected primary-expression before 'const'
../../lib/dia_xml.h:93: error: initializer expression list treated as compound expression
../../lib/dia_xml.h:94: error: 'DataNode' does not name a type
../../lib/properties.h:110: error: 'AttributeNode' has not been declared
../../lib/properties.h:110: error: 'DataNode' has not been declared
../../lib/properties.h:111: error: 'AttributeNode' has not been declared
../../lib/properties.h:434: error: 'ObjectNode' has not been declared
../../lib/properties.h:435: error: 'ObjectNode' has not been declared
../../lib/text.h:88: error: variable or field 'data_add_text' declared void
../../lib/text.h:88: error: 'AttributeNode' was not declared in this scope
../../lib/text.h:88: error: expected primary-expression before '*' token
../../lib/text.h:88: error: 'text' was not declared in this scope
../../lib/text.h:88: error: initializer expression list treated as compound expression
../../lib/text.h:89: error: 'AttributeNode' was not declared in this scope
../../lib/object.h:93: error: typedef 'LoadFunc' is initialized (use __typeof__ instead)
../../lib/object.h:93: error: 'ObjectNode' was not declared in this scope
../../lib/object.h:93: error: expected primary-expression before 'int'
../../lib/object.h:94: error: expected primary-expression before 'const'
../../lib/object.h:100: error: 'ObjectNode' has not been declared
../../lib/object.h:293: error: 'ObjectNode' has not been declared
../../lib/object.h:294: error: 'ObjectNode' has not been declared
../../lib/object.h:334: error: 'ObjectNode' has not been declared
../../lib/object.h:336: error: 'ObjectNode' has not been declared
wmf.cpp: In function 'void begin_render(DiaRenderer*)':
wmf.cpp:238: warning: left-hand operand of comma has no effect
wmf.cpp: In function 'void end_render(DiaRenderer*)':
wmf.cpp:258: warning: left-hand operand of comma has no effect
wmf.cpp:254: warning: unused variable 'nSize'
wmf.cpp:255: warning: unused variable 'pData'
wmf.cpp:256: warning: unused variable 'f'
wmf.cpp: In function 'void set_linewidth(DiaRenderer*, real)':
wmf.cpp:311: warning: left-hand operand of comma has no effect
wmf.cpp:311: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void set_linecaps(DiaRenderer*, LineCaps)':
wmf.cpp:321: warning: left-hand operand of comma has no effect
wmf.cpp:321: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void set_linejoin(DiaRenderer*, LineJoin)':
wmf.cpp:348: warning: left-hand operand of comma has no effect
wmf.cpp:348: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void set_linestyle(DiaRenderer*, LineStyle)':
wmf.cpp:374: warning: left-hand operand of comma has no effect
wmf.cpp:374: warning: right-hand operand of comma has no effect
wmf.cpp:405: warning: enumeration value 'LINESTYLE_SOLID' not handled in switch
wmf.cpp: In function 'void set_dashlength(DiaRenderer*, real)':
wmf.cpp:420: warning: left-hand operand of comma has no effect
wmf.cpp:420: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void set_fillstyle(DiaRenderer*, FillStyle)':
wmf.cpp:431: warning: left-hand operand of comma has no effect
wmf.cpp:431: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void set_font(DiaRenderer*, DiaFont*, real)':
wmf.cpp:451: warning: left-hand operand of comma has no effect
wmf.cpp:452: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void draw_line(DiaRenderer*, Point*, Point*, Color*)':
wmf.cpp:498: warning: left-hand operand of comma has no effect
wmf.cpp:499: warning: right-hand operand of comma has no effect
wmf.cpp:499: warning: right-hand operand of comma has no effect
wmf.cpp:499: warning: right-hand operand of comma has no effect
wmf.cpp:499: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void draw_polyline(DiaRenderer*, Point*, int, Color*)':
wmf.cpp:520: warning: left-hand operand of comma has no effect
wmf.cpp:521: warning: right-hand operand of comma has no effect
wmf.cpp:521: warning: right-hand operand of comma has no effect
wmf.cpp:521: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void draw_polygon(DiaRenderer*, Point*, int, Color*)':
wmf.cpp:550: warning: left-hand operand of comma has no effect
wmf.cpp:551: warning: right-hand operand of comma has no effect
wmf.cpp:551: warning: right-hand operand of comma has no effect
wmf.cpp:551: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void fill_polygon(DiaRenderer*, Point*, int, Color*)':
wmf.cpp:581: warning: left-hand operand of comma has no effect
wmf.cpp:582: warning: right-hand operand of comma has no effect
wmf.cpp:582: warning: right-hand operand of comma has no effect
wmf.cpp:582: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void draw_rect(DiaRenderer*, Point*, Point*, Color*)':
wmf.cpp:603: warning: left-hand operand of comma has no effect
wmf.cpp:604: warning: right-hand operand of comma has no effect
wmf.cpp:604: warning: right-hand operand of comma has no effect
wmf.cpp:604: warning: right-hand operand of comma has no effect
wmf.cpp:604: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void fill_rect(DiaRenderer*, Point*, Point*, Color*)':
wmf.cpp:624: warning: left-hand operand of comma has no effect
wmf.cpp:625: warning: right-hand operand of comma has no effect
wmf.cpp:625: warning: right-hand operand of comma has no effect
wmf.cpp:625: warning: right-hand operand of comma has no effect
wmf.cpp:625: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void draw_arc(DiaRenderer*, Point*, real, real, real, real, Color*)':
wmf.cpp:648: warning: left-hand operand of comma has no effect
wmf.cpp:649: warning: right-hand operand of comma has no effect
wmf.cpp:649: warning: right-hand operand of comma has no effect
wmf.cpp:649: warning: right-hand operand of comma has no effect
wmf.cpp:649: warning: right-hand operand of comma has no effect
wmf.cpp:649: warning: right-hand operand of comma has no effect
wmf.cpp:649: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void fill_arc(DiaRenderer*, Point*, real, real, real, real, Color*)':
wmf.cpp:683: warning: left-hand operand of comma has no effect
wmf.cpp:684: warning: right-hand operand of comma has no effect
wmf.cpp:684: warning: right-hand operand of comma has no effect
wmf.cpp:684: warning: right-hand operand of comma has no effect
wmf.cpp:684: warning: right-hand operand of comma has no effect
wmf.cpp:684: warning: right-hand operand of comma has no effect
wmf.cpp:684: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void draw_ellipse(DiaRenderer*, Point*, real, real, Color*)':
wmf.cpp:718: warning: left-hand operand of comma has no effect
wmf.cpp:719: warning: right-hand operand of comma has no effect
wmf.cpp:719: warning: right-hand operand of comma has no effect
wmf.cpp:719: warning: right-hand operand of comma has no effect
wmf.cpp:719: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void fill_ellipse(DiaRenderer*, Point*, real, real, Color*)':
wmf.cpp:743: warning: left-hand operand of comma has no effect
wmf.cpp:744: warning: right-hand operand of comma has no effect
wmf.cpp:744: warning: right-hand operand of comma has no effect
wmf.cpp:744: warning: right-hand operand of comma has no effect
wmf.cpp:744: warning: right-hand operand of comma has no effect
wmf.cpp:739: warning: unused variable 'hPen'
wmf.cpp: In function 'void draw_bezier(DiaRenderer*, BezPoint*, int, Color*)':
wmf.cpp:767: warning: left-hand operand of comma has no effect
wmf.cpp:768: warning: right-hand operand of comma has no effect
wmf.cpp:768: warning: right-hand operand of comma has no effect
wmf.cpp:768: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void draw_string(DiaRenderer*, const char*, Point*, Alignment, Color*)':
wmf.cpp:854: warning: left-hand operand of comma has no effect
wmf.cpp:855: warning: right-hand operand of comma has no effect
wmf.cpp:855: warning: right-hand operand of comma has no effect
wmf.cpp:855: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void draw_image(DiaRenderer*, Point*, real, real, _DiaImage*)':
wmf.cpp:911: warning: unused variable 'renderer'
wmf.cpp: In function 'void draw_rounded_rect(DiaRenderer*, Point*, Point*, Color*, real)':
wmf.cpp:1020: warning: left-hand operand of comma has no effect
wmf.cpp:1021: warning: right-hand operand of comma has no effect
wmf.cpp:1021: warning: right-hand operand of comma has no effect
wmf.cpp:1021: warning: right-hand operand of comma has no effect
wmf.cpp:1021: warning: right-hand operand of comma has no effect
wmf.cpp:1021: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void fill_rounded_rect(DiaRenderer*, Point*, Point*, Color*, real)':
wmf.cpp:1042: warning: left-hand operand of comma has no effect
wmf.cpp:1043: warning: right-hand operand of comma has no effect
wmf.cpp:1043: warning: right-hand operand of comma has no effect
wmf.cpp:1043: warning: right-hand operand of comma has no effect
wmf.cpp:1043: warning: right-hand operand of comma has no effect
wmf.cpp: In function 'void wmf_renderer_finalize(GObject*)':
wmf.cpp:1091: warning: unused variable 'wmf_renderer'
wmf.cpp: In function 'void export_data(DiagramData*, const gchar*, const gchar*, void*)':
wmf.cpp:1247: warning: left-hand operand of comma has no effect
wmf.cpp:1248: warning: right-hand operand of comma has no effect
wmf.cpp:1248: warning: right-hand operand of comma has no effect
wmf.cpp:1248: warning: right-hand operand of comma has no effect
wmf.cpp:1248: warning: right-hand operand of comma has no effect
wmf.cpp:1153: warning: unused variable 'len'
wmf.cpp: At global scope:
wmf.cpp:1258: warning: 'wmf_export_filter' defined but not used
wmf.cpp:1267: warning: 'emf_export_filter' defined but not used
make[3]: Leaving directory `/usr/src/RPM/BUILD/dia-0.94/plug-ins/wmf'
make[3]: *** [wmf.lo] Error 1
make[2]: Leaving directory `/usr/src/RPM/BUILD/dia-0.94/plug-ins'
make[1]: Leaving directory `/usr/src/RPM/BUILD/dia-0.94'
make: Leaving directory `/usr/src/RPM/BUILD/dia-0.94'


RPM build errors:
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
error: Bad exit status from /usr/src/tmp/rpm-tmp.46809 (%build)
    Bad exit status from /usr/src/tmp/rpm-tmp.46809 (%build)
182.87user 35.60system 3:43.68elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (282major+8518645minor)pagefaults 0swaps
rebuild: rebuild of `dia-0.94-alt12cvs20051206.src.rpm' failed.
210.61user 45.59system 4:47.78elapsed 89%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (415major+9517488minor)pagefaults 0swaps

----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 191 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20060528/27f8a67b/attachment-0001.bin>


Подробная информация о списке рассылки Devel