cc -c -I../../.. -I../.. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/libxml2   
-DGUI_SOURCES -DCURDIR=src/ui/gtk -O3 -mtune=k6-2 -g -mcpu=k6-2 -W -Wall 
-Wformat=2 -Wshadow -I/usr/local/include -momit-leaf-frame-pointer 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe  
html_view.c
html_view.c:55: error: 'NUM_HTML_TAGS' undeclared here (not in a function)
html_view.c: In function 'html_output_tag':
html_view.c:122: warning: enumeration value 'HTML_TAG_DOCTYPE' not handled in 
switch
html_view.c:122: warning: enumeration value 'HTML_TAG_H6' not handled in switch
html_view.c:122: warning: enumeration value 'HTML_TAG_TT' not handled in switch
html_view.c:122: warning: enumeration value 'NUM_HTML_TAG' not handled in switch

This patch compiles...

Index: html_view.c
===================================================================
--- html_view.c (revision 12900)
+++ html_view.c (working copy)
@@ -52,7 +52,7 @@
        GtkTextView *view;
        GtkTextBuffer *buffer;
        GtkTextIter iter;
-       GtkTextMark *start[NUM_HTML_TAGS];
+       GtkTextMark *start[NUM_HTML_TAG];
 #else  /* Gtk+ < 2.0 */
        GtkText *view;
 #endif /* Gtk+ >= 2.0 */
@@ -182,6 +182,7 @@
        case HTML_TAG_H3:
        case HTML_TAG_H4:
        case HTML_TAG_H5:
+       case HTML_TAG_H6:
                style = "heading";
                text = closing ? "\n\n" : "\n";
                break;
@@ -225,8 +226,10 @@
        case HTML_TAG_COL:
        case HTML_TAG_TBODY:
        case HTML_TAG_UNKNOWN:
+       case HTML_TAG_DOCTYPE:
+       case HTML_TAG_TT:
                break;
-       case NUM_HTML_TAGS:
+       case NUM_HTML_TAG:
                g_assert_not_reached();
        }


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to