GtkRadiant icon indicating copy to clipboard operation
GtkRadiant copied to clipboard

Inventory of build warnings on Apple Clang

Open jdolan opened this issue 7 years ago • 3 comments

Leaving this here for @Pan7 or anyone else who needs help falling asleep at night:

See attachment if you prefer a .zip'ed text file. GtkRadiant-clang-build-warnings.log.zip

radiant/camwindow.cpp:136:35: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ( ( g_qeglobals.d_select_mode == sel_area ) ) {
               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
radiant/camwindow.cpp:136:35: note: remove extraneous parentheses around the comparison to silence this warning
        if ( ( g_qeglobals.d_select_mode == sel_area ) ) {
             ~~                          ^           ~~
radiant/camwindow.cpp:136:35: note: use '=' to turn this equality comparison into an assignment
        if ( ( g_qeglobals.d_select_mode == sel_area ) ) {
                                         ^~
                                         =
1 warning generated.
radiant/dialog.cpp:129:13: warning: enumeration value 'DLG_COMBO_INT' not handled in switch [-Wswitch]
                        switch ( data->type )
                                 ^
radiant/dialog.cpp:183:13: warning: enumeration value 'DLG_COMBO_INT' not handled in switch [-Wswitch]
                        switch ( data->type )
                                 ^
2 warnings generated.
radiant/gtkdlgs.cpp:1872:47: warning: missing sentinel in function call [-Wsentinel]
                g_object_set( lst->data, "xalign", 1.0, NULL );
                                                            ^
                                                            , NULL
/opt/local/include/glib-2.0/gobject/gobject.h:432:10: note: function has been explicitly marked sentinel here
void        g_object_set                      (gpointer        object,
            ^
radiant/gtkdlgs.cpp:1890:47: warning: missing sentinel in function call [-Wsentinel]
                g_object_set( lst->data, "xalign", 1.0, NULL );
                                                            ^
                                                            , NULL
/opt/local/include/glib-2.0/gobject/gobject.h:432:10: note: function has been explicitly marked sentinel here
void        g_object_set                      (gpointer        object,
            ^
2 warnings generated.
radiant/gtkmisc.cpp:1468:89: warning: missing sentinel in function call [-Wsentinel]
        file_sel = gtk_file_chooser_dialog_new( title, GTK_WINDOW( parent ), action, NULL, NULL );
                                                                                               ^
                                                                                               , NULL
/opt/local/include/gtk-2.0/gtk/gtkfilechooserdialog.h:57:12: note: function has been explicitly marked sentinel here
GtkWidget *gtk_file_chooser_dialog_new              (const gchar          *title,
           ^
radiant/gtkmisc.cpp:1591:89: warning: missing sentinel in function call [-Wsentinel]
        file_sel = gtk_file_chooser_dialog_new( title, GTK_WINDOW( parent ), action, NULL, NULL );
                                                                                               ^
                                                                                               , NULL
/opt/local/include/gtk-2.0/gtk/gtkfilechooserdialog.h:57:12: note: function has been explicitly marked sentinel here
GtkWidget *gtk_file_chooser_dialog_new              (const gchar          *title,
           ^
radiant/gtkmisc.cpp:836:20: warning: unused function 'gtk_AddDlgButton' [-Wunused-function]
static GtkWidget * gtk_AddDlgButton( GtkWidget *container, const char *label, 
                   ^
3 warnings generated.
radiant/patchdialog.cpp:364:47: warning: missing sentinel in function call [-Wsentinel]
                g_object_set( lst->data, "xalign", 1.0, NULL );
                                                            ^
                                                            , NULL
/opt/local/include/glib-2.0/gobject/gobject.h:432:10: note: function has been explicitly marked sentinel here
void        g_object_set                      (gpointer        object,
            ^
radiant/patchdialog.cpp:380:47: warning: missing sentinel in function call [-Wsentinel]
                g_object_set( lst->data, "xalign", 1.0, NULL );
                                                            ^
                                                            , NULL
/opt/local/include/glib-2.0/gobject/gobject.h:432:10: note: function has been explicitly marked sentinel here
void        g_object_set                      (gpointer        object,
            ^
2 warnings generated.
In file included from radiant/surfacedialog.cpp:32:
In file included from radiant/stdafx.h:39:
In file included from radiant/qe3.h:758:
radiant/surfacedialog.h:32:8: warning: private field 'm_bPatchMode' is not used [-Wunused-private-field]
  bool m_bPatchMode;
       ^
1 warning generated.
In file included from radiant/watchbsp.cpp:36:
In file included from radiant/stdafx.h:39:
In file included from radiant/qe3.h:755:
In file included from radiant/mainframe.h:29:
radiant/watchbsp.h:62:19: warning: private field 'm_xmlInput' is not used [-Wunused-private-field]
xmlParserInputPtr m_xmlInput;
                  ^
radiant/watchbsp.h:72:6: warning: private field 'm_bNeedCtxtInit' is not used [-Wunused-private-field]
bool m_bNeedCtxtInit;
     ^
2 warnings generated.
radiant/xywindow.cpp:1013:35: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ( ( g_qeglobals.d_select_mode == sel_area ) ) {
               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
radiant/xywindow.cpp:1013:35: note: remove extraneous parentheses around the comparison to silence this warning
        if ( ( g_qeglobals.d_select_mode == sel_area ) ) {
             ~~                          ^           ~~
radiant/xywindow.cpp:1013:35: note: use '=' to turn this equality comparison into an assignment
        if ( ( g_qeglobals.d_select_mode == sel_area ) ) {
                                         ^~
                                         =
radiant/xywindow.cpp:79:11: warning: unused variable 'XY_LEFT' [-Wunused-const-variable]
const int XY_LEFT = 0x01;
          ^
radiant/xywindow.cpp:80:11: warning: unused variable 'XY_RIGHT' [-Wunused-const-variable]
const int XY_RIGHT = 0x02;
          ^
radiant/xywindow.cpp:81:11: warning: unused variable 'XY_UP' [-Wunused-const-variable]
const int XY_UP = 0x04;
          ^
radiant/xywindow.cpp:82:11: warning: unused variable 'XY_DOWN' [-Wunused-const-variable]
const int XY_DOWN = 0x08;
          ^
5 warnings generated.
plugins/vfsqlpk3/unzip.cpp:2074:43: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((pfile_in_zip_read_info->read_buffer == NULL))
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
plugins/vfsqlpk3/unzip.cpp:2074:43: note: remove extraneous parentheses around the comparison to silence this warning
        if ((pfile_in_zip_read_info->read_buffer == NULL))
            ~                                    ^      ~
plugins/vfsqlpk3/unzip.cpp:2074:43: note: use '=' to turn this equality comparison into an assignment
        if ((pfile_in_zip_read_info->read_buffer == NULL))
                                                 ^~
                                                 =
plugins/vfsqlpk3/unzip.cpp:3173:12: warning: unused variable 'inflate_copyright' [-Wunused-const-variable]
const char inflate_copyright[] =
           ^
2 warnings generated.
plugins/vfspk3/unzip.cpp:2077:43: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((pfile_in_zip_read_info->read_buffer == NULL))
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
plugins/vfspk3/unzip.cpp:2077:43: note: remove extraneous parentheses around the comparison to silence this warning
        if ((pfile_in_zip_read_info->read_buffer == NULL))
            ~                                    ^      ~
plugins/vfspk3/unzip.cpp:2077:43: note: use '=' to turn this equality comparison into an assignment
        if ((pfile_in_zip_read_info->read_buffer == NULL))
                                                 ^~
                                                 =
plugins/vfspk3/unzip.cpp:3176:12: warning: unused variable 'inflate_copyright' [-Wunused-const-variable]
const char inflate_copyright[] =
           ^
2 warnings generated.
libs/picomodel/pm_fm.c:428:57: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                        else if ( ( p_index_LUT[triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
libs/picomodel/pm_fm.c:428:57: note: remove extraneous parentheses around the comparison to silence this warning
                        else if ( ( p_index_LUT[triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                  ~~                                         ^       ~~
libs/picomodel/pm_fm.c:428:57: note: use '=' to turn this equality comparison into an assignment
                        else if ( ( p_index_LUT[triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                                                             ^~
                                                                             =
1 warning generated.
libs/picomodel/pm_md2.c:522:62: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                        else if ( ( p_index_LUT[p_md2Triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
libs/picomodel/pm_md2.c:522:62: note: remove extraneous parentheses around the comparison to silence this warning
                        else if ( ( p_index_LUT[p_md2Triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                  ~~                                              ^       ~~
libs/picomodel/pm_md2.c:522:62: note: use '=' to turn this equality comparison into an assignment
                        else if ( ( p_index_LUT[p_md2Triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                                                                  ^~
                                                                                  =
1 warning generated.
libs/picomodel/lwo/pntspols.c:535:45: warning: incompatible pointer types passing 'char **' to parameter of type 'unsigned char **' [-Wincompatible-pointer-types]
                tlist->tag[ i + tlist->offset ] = sgetS0( &bp );
                                                          ^~~
libs/picomodel/lwo/lwo2.h:644:31: note: passing argument to parameter 'bp' here
char *sgetS0( unsigned char **bp );
                              ^
1 warning generated.
plugins/model/cpicomodel.cpp:198:25: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if ( !m_pModel || surf < 0 || surf >= m_children->len ) {
                          ~~~~ ^ ~
1 warning generated.
plugins/textool/TexTool.cpp:267:32: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
        float RatioX = XSize / (float)abs( g_2DView.m_rect.left - g_2DView.m_rect.right );
                                      ^
plugins/textool/TexTool.cpp:267:32: note: use function 'std::abs' instead
        float RatioX = XSize / (float)abs( g_2DView.m_rect.left - g_2DView.m_rect.right );
                                      ^~~
                                      std::abs
plugins/textool/TexTool.cpp:267:32: note: include the header <cstdlib> or explicitly provide a declaration for 'std::abs'
plugins/textool/TexTool.cpp:268:32: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
        float RatioY = YSize / (float)abs( g_2DView.m_rect.top - g_2DView.m_rect.bottom );
                                      ^
plugins/textool/TexTool.cpp:268:32: note: use function 'std::abs' instead
        float RatioY = YSize / (float)abs( g_2DView.m_rect.top - g_2DView.m_rect.bottom );
                                      ^~~
                                      std::abs
plugins/textool/TexTool.cpp:268:32: note: include the header <cstdlib> or explicitly provide a declaration for 'std::abs'
plugins/textool/TexTool.cpp:270:18: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
                YSize = (float)abs( g_2DView.m_rect.top - g_2DView.m_rect.bottom ) * RatioX;
                               ^
plugins/textool/TexTool.cpp:270:18: note: use function 'std::abs' instead
                YSize = (float)abs( g_2DView.m_rect.top - g_2DView.m_rect.bottom ) * RatioX;
                               ^~~
                               std::abs
plugins/textool/TexTool.cpp:270:18: note: include the header <cstdlib> or explicitly provide a declaration for 'std::abs'
plugins/textool/TexTool.cpp:275:18: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
                XSize = (float)abs( g_2DView.m_rect.left - g_2DView.m_rect.right ) * RatioY;
                               ^
plugins/textool/TexTool.cpp:275:18: note: use function 'std::abs' instead
                XSize = (float)abs( g_2DView.m_rect.left - g_2DView.m_rect.right ) * RatioY;
                               ^~~
                               std::abs
plugins/textool/TexTool.cpp:275:18: note: include the header <cstdlib> or explicitly provide a declaration for 'std::abs'
4 warnings generated.
In file included from libs/splines/math_angles.cpp:22:
In file included from libs/splines/q_shared.h:328:
libs/splines/math_quaternion.h:160:62: warning: '&&' within '||' [-Wlogical-op-parentheses]
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                  ~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
libs/splines/math_quaternion.h:160:62: note: place parentheses around the '&&' expression to silence this warning
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                                    ^
                                                     (                               )
1 warning generated.
In file included from libs/splines/math_matrix.cpp:22:
In file included from libs/splines/q_shared.h:328:
libs/splines/math_quaternion.h:160:62: warning: '&&' within '||' [-Wlogical-op-parentheses]
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                  ~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
libs/splines/math_quaternion.h:160:62: note: place parentheses around the '&&' expression to silence this warning
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                                    ^
                                                     (                               )
1 warning generated.
In file included from libs/splines/math_quaternion.cpp:22:
libs/splines/math_quaternion.h:160:62: warning: '&&' within '||' [-Wlogical-op-parentheses]
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                  ~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
libs/splines/math_quaternion.h:160:62: note: place parentheses around the '&&' expression to silence this warning
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                                    ^
                                                     (                               )
1 warning generated.
In file included from libs/splines/q_parse.cpp:24:
In file included from libs/splines/q_shared.h:328:
libs/splines/math_quaternion.h:160:62: warning: '&&' within '||' [-Wlogical-op-parentheses]
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                  ~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
libs/splines/math_quaternion.h:160:62: note: place parentheses around the '&&' expression to silence this warning
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                                    ^
                                                     (                               )
1 warning generated.
In file included from libs/splines/q_shared.cpp:23:
In file included from libs/splines/q_shared.h:328:
libs/splines/math_quaternion.h:160:62: warning: '&&' within '||' [-Wlogical-op-parentheses]
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                  ~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
libs/splines/math_quaternion.h:160:62: note: place parentheses around the '&&' expression to silence this warning
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                                    ^
                                                     (                               )
1 warning generated.
In file included from libs/splines/splines.cpp:22:
In file included from libs/splines/q_shared.h:328:
libs/splines/math_quaternion.h:160:62: warning: '&&' within '||' [-Wlogical-op-parentheses]
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                  ~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
libs/splines/math_quaternion.h:160:62: note: place parentheses around the '&&' expression to silence this warning
        return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
                                                                    ^
                                                     (                               )
1 warning generated.
contrib/camera/dialogs.cpp:42:24: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
static char *g_cNull = '\0';
                       ^~~~
contrib/camera/dialogs.cpp:1206:104: warning: missing sentinel in function call [-Wsentinel]
        column = gtk_tree_view_column_new_with_attributes( "events", renderer, "text", EVENT_TEXT_COLUMN, NULL );
                                                                                                              ^
                                                                                                              , NULL
/opt/local/include/gtk-2.0/gtk/gtktreeviewcolumn.h:128:25: note: function has been explicitly marked sentinel here
GtkTreeViewColumn      *gtk_tree_view_column_new_with_attributes (const gchar             *title,
                        ^
contrib/camera/dialogs.cpp:42:14: warning: unused variable 'g_cNull' [-Wunused-variable]
static char *g_cNull = '\0';
             ^
3 warnings generated.
contrib/prtview/LoadPortalFileDialog.cpp:40:100: warning: missing sentinel in function call [-Wsentinel]
        file_sel = gtk_file_chooser_dialog_new( _( "Locate portal (.prt) file" ), NULL, action, NULL, NULL );
                                                                                                          ^
                                                                                                          , NULL
/opt/local/include/gtk-2.0/gtk/gtkfilechooserdialog.h:57:12: note: function has been explicitly marked sentinel here
GtkWidget *gtk_file_chooser_dialog_new              (const gchar          *title,
           ^
1 warning generated.
contrib/prtview/portals.cpp:238:20: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if ( portal_count < 0 ) {
             ~~~~~~~~~~~~ ^ ~
1 warning generated.
contrib/bobtoolz/visfind.cpp:210:2: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete]
        delete repeatlist;
        ^
              []
contrib/bobtoolz/visfind.cpp:176:27: note: allocated with 'new[]' here
        qboolean*   repeatlist = new qboolean[numDrawSurfaces];
                                 ^
1 warning generated.
tools/quake3/common/imagelib.c:737:12: warning: variable 'bcHeight' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( structSize == 12 ) {
                  ^~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:768:7: note: uninitialized use occurs here
        if ( bcHeight < 0 ) {
             ^~~~~~~~
tools/quake3/common/imagelib.c:737:7: note: remove the 'if' if its condition is always true
        else if ( structSize == 12 ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:689:14: note: initialize the variable 'bcHeight' to silence this warning
        int bcHeight;
                    ^
                     = 0
tools/quake3/common/imagelib.c:737:12: warning: variable 'bcBitCount' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( structSize == 12 ) {
                  ^~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:764:7: note: uninitialized use occurs here
        if ( bcBitCount != 8 ) {
             ^~~~~~~~~~
tools/quake3/common/imagelib.c:737:7: note: remove the 'if' if its condition is always true
        else if ( structSize == 12 ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:691:16: note: initialize the variable 'bcBitCount' to silence this warning
        int bcBitCount;
                      ^
                       = 0
tools/quake3/common/imagelib.c:737:12: warning: variable 'bcPlanes' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( structSize == 12 ) {
                  ^~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:760:7: note: uninitialized use occurs here
        if ( bcPlanes != 1 ) {
             ^~~~~~~~
tools/quake3/common/imagelib.c:737:7: note: remove the 'if' if its condition is always true
        else if ( structSize == 12 ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:690:14: note: initialize the variable 'bcPlanes' to silence this warning
        int bcPlanes;
                    ^
                     = 0
3 warnings generated.
tools/quake3/common/inout.c:76:26: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        ret = xmlNewNode( NULL, "point" );
                                ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:77:26: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( ret, buf );
                                ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:154:27: warning: passing 'char [7]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "select" );
                                 ^~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:155:27: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( node, buf );
                                 ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:158:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:158:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
tools/quake3/common/inout.c:161:29: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        select = xmlNewNode( NULL, "brush" );
                                   ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:162:29: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( select, buf );
                                   ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:181:27: warning: passing 'char [9]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "pointmsg" );
                                 ^~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:182:27: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( node, msg );
                                 ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:185:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:185:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
tools/quake3/common/inout.c:188:28: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        point = xmlNewNode( NULL, "point" );
                                  ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:189:28: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( point, buf );
                                  ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:205:27: warning: passing 'char [11]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "windingmsg" );
                                 ^~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:206:27: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( node, msg );
                                 ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:209:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:209:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
tools/quake3/common/inout.c:222:30: warning: passing 'char [8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        winding = xmlNewNode( NULL, "winding" );
                                    ^~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:223:30: warning: passing 'char [2048]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( winding, buf );
                                    ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:287:20: warning: passing 'char [4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                doc = xmlNewDoc( "1.0" );
                                 ^~~~~
/opt/local/include/libxml2/libxml/tree.h:780:30: note: passing argument to parameter 'version' here
                xmlNewDoc               (const xmlChar *version);
                                                        ^
tools/quake3/common/inout.c:288:48: warning: passing 'char [15]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                doc->children = xmlNewDocRawNode( doc, NULL, "q3map_feedback", NULL );
                                                             ^~~~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:904:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:291:27: warning: passing 'char [8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "message" );
                                 ^~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:294:28: warning: passing 'gchar *' (aka 'char *') to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                xmlNodeSetContent( node, utf8 );
                                         ^~~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:299:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:299:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
26 warnings generated.
tools/quake3/common/unzip.c:1202:14: warning: unused function 'zcalloc' [-Wunused-function]
static voidp zcalloc OF((voidp opaque, unsigned items, unsigned size));
             ^
tools/quake3/common/unzip.c:1203:14: warning: unused function 'zcfree' [-Wunused-function]
static void  zcfree  OF((voidp opaque, voidp ptr));
             ^
tools/quake3/common/unzip.c:2695:20: warning: unused variable 'crc_table' [-Wunused-const-variable]
static const uLong crc_table[256] = {
                   ^
tools/quake3/common/unzip.c:2837:19: warning: unused variable 'border' [-Wunused-const-variable]
static const uInt border[] = { /* Order of the bit length code lengths */
                  ^
tools/quake3/common/unzip.c:3555:12: warning: unused function 'huft_build' [-Wunused-function]
static int huft_build(uInt *b, uInt n, uInt s, const uInt *d, const uInt *e, inflate_huft ** t, uInt *m, inflate_huft *hp, uInt *hn, uInt *v)
           ^
tools/quake3/common/unzip.c:3503:19: warning: unused variable 'cplens' [-Wunused-const-variable]
static const uInt cplens[31] = { /* Copy lengths for literal codes 257..285 */
                  ^
tools/quake3/common/unzip.c:3507:19: warning: unused variable 'cplext' [-Wunused-const-variable]
static const uInt cplext[31] = { /* Extra bits for literal codes 257..285 */
                  ^
tools/quake3/common/unzip.c:3510:19: warning: unused variable 'cpdist' [-Wunused-const-variable]
static const uInt cpdist[30] = { /* Copy offsets for distance codes 0..29 */
                  ^
tools/quake3/common/unzip.c:3514:19: warning: unused variable 'cpdext' [-Wunused-const-variable]
static const uInt cpdext[30] = { /* Extra bits for distance codes */
                  ^
tools/quake3/common/unzip.c:3858:13: warning: unused variable 'fixed_bl' [-Wunused-variable]
static uInt fixed_bl = 9;
            ^
tools/quake3/common/unzip.c:3859:13: warning: unused variable 'fixed_bd' [-Wunused-variable]
static uInt fixed_bd = 5;
            ^
tools/quake3/common/unzip.c:3860:21: warning: unused variable 'fixed_tl' [-Wunused-variable]
static inflate_huft fixed_tl[] = {
                    ^
tools/quake3/common/unzip.c:3990:21: warning: unused variable 'fixed_td' [-Wunused-variable]
static inflate_huft fixed_td[] = {
                    ^
13 warnings generated.
tools/quake3/common/vfs.c:148:3: warning: 'g_strdown' is deprecated [-Wdeprecated-declarations]
                g_strdown( filename_inzip );
                ^
/opt/local/include/glib-2.0/glib/gstrfuncs.h:207:23: note: 'g_strdown' has been explicitly marked deprecated here
gchar*                g_strdown        (gchar       *string);
                      ^
tools/quake3/common/vfs.c:239:2: warning: 'g_strdown' is deprecated [-Wdeprecated-declarations]
        g_strdown( fixed );
        ^
/opt/local/include/glib-2.0/glib/gstrfuncs.h:207:23: note: 'g_strdown' has been explicitly marked deprecated here
gchar*                g_strdown        (gchar       *string);
                      ^
tools/quake3/common/vfs.c:299:2: warning: 'g_strdown' is deprecated [-Wdeprecated-declarations]
        g_strdown( fixed );
        ^
/opt/local/include/glib-2.0/glib/gstrfuncs.h:207:23: note: 'g_strdown' has been explicitly marked deprecated here
gchar*                g_strdown        (gchar       *string);
                      ^
3 warnings generated.
libs/picomodel/pm_fm.c:428:57: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                        else if ( ( p_index_LUT[triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
libs/picomodel/pm_fm.c:428:57: note: remove extraneous parentheses around the comparison to silence this warning
                        else if ( ( p_index_LUT[triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                  ~~                                         ^       ~~
libs/picomodel/pm_fm.c:428:57: note: use '=' to turn this equality comparison into an assignment
                        else if ( ( p_index_LUT[triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                                                             ^~
                                                                             =
1 warning generated.
libs/picomodel/pm_md2.c:522:62: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                        else if ( ( p_index_LUT[p_md2Triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
libs/picomodel/pm_md2.c:522:62: note: remove extraneous parentheses around the comparison to silence this warning
                        else if ( ( p_index_LUT[p_md2Triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                  ~~                                              ^       ~~
libs/picomodel/pm_md2.c:522:62: note: use '=' to turn this equality comparison into an assignment
                        else if ( ( p_index_LUT[p_md2Triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                                                                  ^~
                                                                                  =
1 warning generated.
libs/picomodel/lwo/pntspols.c:535:45: warning: incompatible pointer types passing 'char **' to parameter of type 'unsigned char **' [-Wincompatible-pointer-types]
                tlist->tag[ i + tlist->offset ] = sgetS0( &bp );
                                                          ^~~
libs/picomodel/lwo/lwo2.h:644:31: note: passing argument to parameter 'bp' here
char *sgetS0( unsigned char **bp );
                              ^
1 warning generated.
tools/quake3/q3map2/shaders.c:532:19: warning: passing 'char [8192]' to parameter of type 'const md5_byte_t *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        md5_append( &mh, shaderText, strlen( shaderText ) );
                         ^~~~~~~~~~
libs/md5lib.h:82:54: note: passing argument to parameter 'data' here
void md5_append( md5_state_t *pms, const md5_byte_t *data, int nbytes );
                                                     ^
tools/quake3/q3map2/shaders.c:585:19: warning: passing 'char [256]' to parameter of type 'const md5_byte_t *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        md5_append( &mh, value, strlen( value ) );
                         ^~~~~
libs/md5lib.h:82:54: note: passing argument to parameter 'data' here
void md5_append( md5_state_t *pms, const md5_byte_t *data, int nbytes );
                                                     ^
tools/quake3/q3map2/shaders.c:1233:10: warning: variable 'ext' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
                                if ( !Q_stricmp( token, "q3map_sunext" ) ) {
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/shaders.c:1276:10: note: uninitialized use occurs here
                                if ( ext && TokenAvailable() ) {
                                     ^~~
tools/quake3/q3map2/shaders.c:1233:5: note: remove the 'if' if its condition is always true
                                if ( !Q_stricmp( token, "q3map_sunext" ) ) {
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/shaders.c:1229:5: note: variable 'ext' is declared here
                                qboolean ext;
                                ^
3 warnings generated.
tools/quake3/q3map2/surface_extra.c:348:19: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        ParseFromMemory( buffer, size );
                         ^~~~~~
tools/quake3/common/scriplib.h:41:29: note: passing argument to parameter 'buffer' here
void ParseFromMemory( char *buffer, int size );
                            ^
1 warning generated.
tools/quake3/q3map2/bsp.c:350:32: warning: passing 'char [8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                leaknode = xmlNewNode( NULL, "message" );
                                             ^~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/q3map2/bsp.c:351:32: warning: passing 'char [12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                xmlNodeSetContent( leaknode, "MAP LEAKED\n" );
                                             ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/q3map2/bsp.c:355:25: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                xmlSetProp( leaknode, "level", (char*) &level );
                                      ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/q3map2/bsp.c:355:34: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                xmlSetProp( leaknode, "level", (char*) &level );
                                               ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
4 warnings generated.
tools/quake3/q3map2/leakfile.c:85:31: warning: passing 'char [9]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xml_node = xmlNewNode( NULL, "polyline" );
                                     ^~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
1 warning generated.
tools/quake3/q3map2/surface_meta.c:701:17: warning: unused function 'PointTriangleIntersect' [-Wunused-function]
static qboolean PointTriangleIntersect( vec3_t pt, vec4_t plane, vec3_t a, vec3_t b, vec3_t c, vec3_t bary ){
                ^
1 warning generated.
tools/quake3/q3map2/light.c:939:12: warning: variable 'add' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( light->type == EMIT_SUN ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/light.c:979:7: note: uninitialized use occurs here
        if ( add <= 0.0f || ( add <= light->falloffTolerance && ( light->flags & LIGHT_FAST_ACTUAL ) ) ) {
             ^~~
tools/quake3/q3map2/light.c:939:7: note: remove the 'if' if its condition is always true
        else if ( light->type == EMIT_SUN ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/light.c:754:11: note: initialize the variable 'add' to silence this warning
        float add;
                 ^
                  = 0.0
1 warning generated.
tools/quake3/q3map2/light_trace.c:539:12: warning: function 'FilterPointToTraceNodes_r' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static int FilterPointToTraceNodes_r( vec3_t pt, int nodeNum ){
           ^
1 warning generated.
tools/quake3/q3map2/light_ydnar.c:1607:12: warning: variable 'origin2' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/light_ydnar.c:1619:18: note: uninitialized use occurs here
        VectorSubtract( origin2, origin, originVecs[ 0 ] );
                        ^~~~~~~
libs/mathlib.h:72:48: note: expanded from macro 'VectorSubtract'
#define VectorSubtract( a,b,c ) ( ( c )[0] = ( a )[0] - ( b )[0],( c )[1] = ( a )[1] - ( b )[1],( c )[2] = ( a )[2] - ( b )[2] )
                                               ^
tools/quake3/q3map2/light_ydnar.c:1607:7: note: remove the 'if' if its condition is always true
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/light_ydnar.c:1607:41: warning: variable 'origin2' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                                               ^~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/light_ydnar.c:1619:18: note: uninitialized use occurs here
        VectorSubtract( origin2, origin, originVecs[ 0 ] );
                        ^~~~~~~
libs/mathlib.h:72:48: note: expanded from macro 'VectorSubtract'
#define VectorSubtract( a,b,c ) ( ( c )[0] = ( a )[0] - ( b )[0],( c )[1] = ( a )[1] - ( b )[1],( c )[2] = ( a )[2] - ( b )[2] )
                                               ^
tools/quake3/q3map2/light_ydnar.c:1607:41: note: remove the '&&' if its condition is always true
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                                               ^~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/light_ydnar.c:1594:31: note: initialize the variable 'origin2' to silence this warning
        float       *origin, *origin2, *normal; //%     , *normal2;
                                     ^
                                      = NULL
tools/quake3/q3map2/light_ydnar.c:1607:12: warning: variable 'origin' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/light_ydnar.c:1619:27: note: uninitialized use occurs here
        VectorSubtract( origin2, origin, originVecs[ 0 ] );
                                 ^~~~~~
libs/mathlib.h:72:59: note: expanded from macro 'VectorSubtract'
#define VectorSubtract( a,b,c ) ( ( c )[0] = ( a )[0] - ( b )[0],( c )[1] = ( a )[1] - ( b )[1],( c )[2] = ( a )[2] - ( b )[2] )
                                                          ^
tools/quake3/q3map2/light_ydnar.c:1607:7: note: remove the 'if' if its condition is always true
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/light_ydnar.c:1607:41: warning: variable 'origin' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                                               ^~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/light_ydnar.c:1619:27: note: uninitialized use occurs here
        VectorSubtract( origin2, origin, originVecs[ 0 ] );
                                 ^~~~~~
libs/mathlib.h:72:59: note: expanded from macro 'VectorSubtract'
#define VectorSubtract( a,b,c ) ( ( c )[0] = ( a )[0] - ( b )[0],( c )[1] = ( a )[1] - ( b )[1],( c )[2] = ( a )[2] - ( b )[2] )
                                                          ^
tools/quake3/q3map2/light_ydnar.c:1607:41: note: remove the '&&' if its condition is always true
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                                               ^~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3map2/light_ydnar.c:1594:21: note: initialize the variable 'origin' to silence this warning
        float       *origin, *origin2, *normal; //%     , *normal2;
                           ^
                            = NULL
4 warnings generated.
tools/quake3/common/imagelib.c:737:12: warning: variable 'bcHeight' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( structSize == 12 ) {
                  ^~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:768:7: note: uninitialized use occurs here
        if ( bcHeight < 0 ) {
             ^~~~~~~~
tools/quake3/common/imagelib.c:737:7: note: remove the 'if' if its condition is always true
        else if ( structSize == 12 ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:689:14: note: initialize the variable 'bcHeight' to silence this warning
        int bcHeight;
                    ^
                     = 0
tools/quake3/common/imagelib.c:737:12: warning: variable 'bcBitCount' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( structSize == 12 ) {
                  ^~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:764:7: note: uninitialized use occurs here
        if ( bcBitCount != 8 ) {
             ^~~~~~~~~~
tools/quake3/common/imagelib.c:737:7: note: remove the 'if' if its condition is always true
        else if ( structSize == 12 ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:691:16: note: initialize the variable 'bcBitCount' to silence this warning
        int bcBitCount;
                      ^
                       = 0
tools/quake3/common/imagelib.c:737:12: warning: variable 'bcPlanes' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( structSize == 12 ) {
                  ^~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:760:7: note: uninitialized use occurs here
        if ( bcPlanes != 1 ) {
             ^~~~~~~~
tools/quake3/common/imagelib.c:737:7: note: remove the 'if' if its condition is always true
        else if ( structSize == 12 ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:690:14: note: initialize the variable 'bcPlanes' to silence this warning
        int bcPlanes;
                    ^
                     = 0
3 warnings generated.
tools/quake3/common/inout.c:76:26: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        ret = xmlNewNode( NULL, "point" );
                                ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:77:26: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( ret, buf );
                                ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:154:27: warning: passing 'char [7]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "select" );
                                 ^~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:155:27: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( node, buf );
                                 ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:158:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:158:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
tools/quake3/common/inout.c:161:29: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        select = xmlNewNode( NULL, "brush" );
                                   ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:162:29: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( select, buf );
                                   ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:181:27: warning: passing 'char [9]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "pointmsg" );
                                 ^~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:182:27: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( node, msg );
                                 ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:185:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:185:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
tools/quake3/common/inout.c:188:28: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        point = xmlNewNode( NULL, "point" );
                                  ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:189:28: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( point, buf );
                                  ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:205:27: warning: passing 'char [11]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "windingmsg" );
                                 ^~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:206:27: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( node, msg );
                                 ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:209:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:209:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
tools/quake3/common/inout.c:222:30: warning: passing 'char [8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        winding = xmlNewNode( NULL, "winding" );
                                    ^~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:223:30: warning: passing 'char [2048]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( winding, buf );
                                    ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:287:20: warning: passing 'char [4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                doc = xmlNewDoc( "1.0" );
                                 ^~~~~
/opt/local/include/libxml2/libxml/tree.h:780:30: note: passing argument to parameter 'version' here
                xmlNewDoc               (const xmlChar *version);
                                                        ^
tools/quake3/common/inout.c:288:48: warning: passing 'char [15]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                doc->children = xmlNewDocRawNode( doc, NULL, "q3map_feedback", NULL );
                                                             ^~~~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:904:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:291:27: warning: passing 'char [8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "message" );
                                 ^~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:294:28: warning: passing 'gchar *' (aka 'char *') to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                xmlNodeSetContent( node, utf8 );
                                         ^~~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:299:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:299:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
26 warnings generated.
tools/quake3/common/unzip.c:1202:14: warning: unused function 'zcalloc' [-Wunused-function]
static voidp zcalloc OF((voidp opaque, unsigned items, unsigned size));
             ^
tools/quake3/common/unzip.c:1203:14: warning: unused function 'zcfree' [-Wunused-function]
static void  zcfree  OF((voidp opaque, voidp ptr));
             ^
tools/quake3/common/unzip.c:2695:20: warning: unused variable 'crc_table' [-Wunused-const-variable]
static const uLong crc_table[256] = {
                   ^
tools/quake3/common/unzip.c:2837:19: warning: unused variable 'border' [-Wunused-const-variable]
static const uInt border[] = { /* Order of the bit length code lengths */
                  ^
tools/quake3/common/unzip.c:3555:12: warning: unused function 'huft_build' [-Wunused-function]
static int huft_build(uInt *b, uInt n, uInt s, const uInt *d, const uInt *e, inflate_huft ** t, uInt *m, inflate_huft *hp, uInt *hn, uInt *v)
           ^
tools/quake3/common/unzip.c:3503:19: warning: unused variable 'cplens' [-Wunused-const-variable]
static const uInt cplens[31] = { /* Copy lengths for literal codes 257..285 */
                  ^
tools/quake3/common/unzip.c:3507:19: warning: unused variable 'cplext' [-Wunused-const-variable]
static const uInt cplext[31] = { /* Extra bits for literal codes 257..285 */
                  ^
tools/quake3/common/unzip.c:3510:19: warning: unused variable 'cpdist' [-Wunused-const-variable]
static const uInt cpdist[30] = { /* Copy offsets for distance codes 0..29 */
                  ^
tools/quake3/common/unzip.c:3514:19: warning: unused variable 'cpdext' [-Wunused-const-variable]
static const uInt cpdext[30] = { /* Extra bits for distance codes */
                  ^
tools/quake3/common/unzip.c:3858:13: warning: unused variable 'fixed_bl' [-Wunused-variable]
static uInt fixed_bl = 9;
            ^
tools/quake3/common/unzip.c:3859:13: warning: unused variable 'fixed_bd' [-Wunused-variable]
static uInt fixed_bd = 5;
            ^
tools/quake3/common/unzip.c:3860:21: warning: unused variable 'fixed_tl' [-Wunused-variable]
static inflate_huft fixed_tl[] = {
                    ^
tools/quake3/common/unzip.c:3990:21: warning: unused variable 'fixed_td' [-Wunused-variable]
static inflate_huft fixed_td[] = {
                    ^
13 warnings generated.
tools/quake3/common/vfs.c:148:3: warning: 'g_strdown' is deprecated [-Wdeprecated-declarations]
                g_strdown( filename_inzip );
                ^
/opt/local/include/glib-2.0/glib/gstrfuncs.h:207:23: note: 'g_strdown' has been explicitly marked deprecated here
gchar*                g_strdown        (gchar       *string);
                      ^
tools/quake3/common/vfs.c:239:2: warning: 'g_strdown' is deprecated [-Wdeprecated-declarations]
        g_strdown( fixed );
        ^
/opt/local/include/glib-2.0/glib/gstrfuncs.h:207:23: note: 'g_strdown' has been explicitly marked deprecated here
gchar*                g_strdown        (gchar       *string);
                      ^
tools/quake3/common/vfs.c:299:2: warning: 'g_strdown' is deprecated [-Wdeprecated-declarations]
        g_strdown( fixed );
        ^
/opt/local/include/glib-2.0/glib/gstrfuncs.h:207:23: note: 'g_strdown' has been explicitly marked deprecated here
gchar*                g_strdown        (gchar       *string);
                      ^
3 warnings generated.
libs/picomodel/pm_fm.c:428:57: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                        else if ( ( p_index_LUT[triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
libs/picomodel/pm_fm.c:428:57: note: remove extraneous parentheses around the comparison to silence this warning
                        else if ( ( p_index_LUT[triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                  ~~                                         ^       ~~
libs/picomodel/pm_fm.c:428:57: note: use '=' to turn this equality comparison into an assignment
                        else if ( ( p_index_LUT[triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                                                             ^~
                                                                             =
1 warning generated.
libs/picomodel/pm_md2.c:522:62: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                        else if ( ( p_index_LUT[p_md2Triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
libs/picomodel/pm_md2.c:522:62: note: remove extraneous parentheses around the comparison to silence this warning
                        else if ( ( p_index_LUT[p_md2Triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                  ~~                                              ^       ~~
libs/picomodel/pm_md2.c:522:62: note: use '=' to turn this equality comparison into an assignment
                        else if ( ( p_index_LUT[p_md2Triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry
                                                                                  ^~
                                                                                  =
1 warning generated.
libs/picomodel/lwo/pntspols.c:535:45: warning: incompatible pointer types passing 'char **' to parameter of type 'unsigned char **' [-Wincompatible-pointer-types]
                tlist->tag[ i + tlist->offset ] = sgetS0( &bp );
                                                          ^~~
libs/picomodel/lwo/lwo2.h:644:31: note: passing argument to parameter 'bp' here
char *sgetS0( unsigned char **bp );
                              ^
1 warning generated.
tools/urt/tools/quake3/q3map2/path_init.c:131:3: warning: variable 'last' is uninitialized when used here [-Wuninitialized]
                last[ 0 ] = path[ 0 ];
                ^~~~
tools/urt/tools/quake3/q3map2/path_init.c:110:19: note: initialize the variable 'last' to silence this warning
        char        *last;
                         ^
                          = NULL
1 warning generated.
tools/urt/tools/quake3/q3map2/shaders.c:531:20: warning: passing 'char [8192]' to parameter of type 'const md5_byte_t *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        md5_append( &md5, shaderText, strlen( shaderText ) );
                          ^~~~~~~~~~
libs/md5lib.h:82:54: note: passing argument to parameter 'data' here
void md5_append( md5_state_t *pms, const md5_byte_t *data, int nbytes );
                                                     ^
tools/urt/tools/quake3/q3map2/shaders.c:584:20: warning: passing 'char [256]' to parameter of type 'const md5_byte_t *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        md5_append( &md5, value, strlen( value ) );
                          ^~~~~
libs/md5lib.h:82:54: note: passing argument to parameter 'data' here
void md5_append( md5_state_t *pms, const md5_byte_t *data, int nbytes );
                                                     ^
tools/urt/tools/quake3/q3map2/shaders.c:1237:10: warning: variable 'ext' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
                                if ( !Q_stricmp( token, "q3map_sunext" ) ) {
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/shaders.c:1280:10: note: uninitialized use occurs here
                                if ( ext && TokenAvailable() ) {
                                     ^~~
tools/urt/tools/quake3/q3map2/shaders.c:1237:5: note: remove the 'if' if its condition is always true
                                if ( !Q_stricmp( token, "q3map_sunext" ) ) {
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/shaders.c:1233:5: note: variable 'ext' is declared here
                                qboolean ext;
                                ^
3 warnings generated.
tools/urt/tools/quake3/q3map2/surface_extra.c:348:19: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        ParseFromMemory( buffer, size );
                         ^~~~~~
tools/quake3/common/scriplib.h:41:29: note: passing argument to parameter 'buffer' here
void ParseFromMemory( char *buffer, int size );
                            ^
1 warning generated.
tools/urt/tools/quake3/q3map2/brush.c:80:8: warning: expression result unused [-Wunused-value]
        for ( brushes; brushes != NULL; brushes = brushes->next )
              ^~~~~~~
tools/urt/tools/quake3/q3map2/brush.c:158:8: warning: expression result unused [-Wunused-value]
        for ( brushes; brushes != NULL; brushes = next )
              ^~~~~~~
tools/urt/tools/quake3/q3map2/brush.c:270:35: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
                else if ( fabs( ai - a[ i ] ) < fabs( bi < b[ i ] ) ) {
                                                ^
tools/urt/tools/quake3/q3map2/brush.c:270:35: note: use function 'abs' instead
                else if ( fabs( ai - a[ i ] ) < fabs( bi < b[ i ] ) ) {
                                                ^~~~
                                                abs
3 warnings generated.
tools/urt/tools/quake3/q3map2/bsp.c:282:32: warning: passing 'char [8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                leaknode = xmlNewNode( NULL, "message" );
                                             ^~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/urt/tools/quake3/q3map2/bsp.c:283:32: warning: passing 'char [12]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                xmlNodeSetContent( leaknode, "MAP LEAKED\n" );
                                             ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/urt/tools/quake3/q3map2/bsp.c:287:25: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                xmlSetProp( leaknode, "level", (char*) &level );
                                      ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/urt/tools/quake3/q3map2/bsp.c:287:34: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                xmlSetProp( leaknode, "level", (char*) &level );
                                               ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
4 warnings generated.
tools/urt/tools/quake3/q3map2/facebsp.c:323:8: warning: expression result unused [-Wunused-value]
        for ( list; list != NULL; list = list->next )
              ^~~~
1 warning generated.
tools/urt/tools/quake3/q3map2/leakfile.c:85:31: warning: passing 'char [9]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xml_node = xmlNewNode( NULL, "polyline" );
                                     ^~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
1 warning generated.
tools/urt/tools/quake3/q3map2/surface_foliage.c:123:31: warning: comparison of constant 2 with expression of type 'qboolean' is always false [-Wtautological-constant-out-of-range-compare]
                        if ( foliage->inverseAlpha == 2 ) {
                             ~~~~~~~~~~~~~~~~~~~~~ ^  ~
1 warning generated.
tools/urt/tools/quake3/q3map2/surface_meta.c:84:19: warning: unused variable 'v' [-Wunused-variable]
        bspDrawVert_t   *v, *temp;
                         ^
tools/urt/tools/quake3/q3map2/surface_meta.c:83:6: warning: unused variable 'i' [-Wunused-variable]
        int i;
            ^
tools/urt/tools/quake3/q3map2/surface_meta.c:1477:29: warning: 'memset' call operates on objects of type 'bspDrawVert_t' while the size is based on a different type 'bspDrawVert_t *' [-Wsizeof-pointer-memaccess]
                memset( verts, 0, sizeof( verts ) );
                        ~~~~~             ^~~~~
tools/urt/tools/quake3/q3map2/surface_meta.c:1477:29: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
                memset( verts, 0, sizeof( verts ) );
                                          ^~~~~
tools/urt/tools/quake3/q3map2/surface_meta.c:1478:31: warning: 'memset' call operates on objects of type 'int' while the size is based on a different type 'int *' [-Wsizeof-pointer-memaccess]
                memset( indexes, 0, sizeof( indexes ) );
                        ~~~~~~~             ^~~~~~~
tools/urt/tools/quake3/q3map2/surface_meta.c:1478:31: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
                memset( indexes, 0, sizeof( indexes ) );
                                            ^~~~~~~
tools/urt/tools/quake3/q3map2/surface_meta.c:704:17: warning: unused function 'PointTriangleIntersect' [-Wunused-function]
static qboolean PointTriangleIntersect( vec3_t pt, vec4_t plane, vec3_t a, vec3_t b, vec3_t c, vec3_t bary ){
                ^
5 warnings generated.
tools/urt/tools/quake3/q3map2/light.c:960:12: warning: variable 'add' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( light->type == EMIT_SUN ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/light.c:1000:7: note: uninitialized use occurs here
        if ( add <= 0.0f || ( add <= light->falloffTolerance && ( light->flags & LIGHT_FAST_ACTUAL ) ) ) {
             ^~~
tools/urt/tools/quake3/q3map2/light.c:960:7: note: remove the 'if' if its condition is always true
        else if ( light->type == EMIT_SUN ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/light.c:767:11: note: initialize the variable 'add' to silence this warning
        float add;
                 ^
                  = 0.0
tools/urt/tools/quake3/q3map2/light.c:1463:9: warning: unused variable 'addSize' [-Wunused-variable]
                float addSize,f;
                      ^
tools/urt/tools/quake3/q3map2/light.c:1717:6: warning: unused variable 'size' [-Wunused-variable]
        int size;
            ^
tools/urt/tools/quake3/q3map2/light.c:1835:4: warning: implicit declaration of function 'ClearLightMap' is invalid in C99 [-Wimplicit-function-declaration]
                        ClearLightMap( &rawLightmaps[ i ] );
                        ^
tools/urt/tools/quake3/q3map2/light.c:1757:23: warning: unused variable 'ds' [-Wunused-variable]
        bspDrawSurface_t    *ds;
                             ^
5 warnings generated.
tools/urt/tools/quake3/q3map2/light_trace.c:539:12: warning: function 'FilterPointToTraceNodes_r' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static int FilterPointToTraceNodes_r( vec3_t pt, int nodeNum ){
           ^
1 warning generated.
tools/urt/tools/quake3/q3map2/light_ydnar.c:366:10: warning: unused variable 'outA' [-Wunused-variable]
                vec3_t outA,outB;
                       ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:366:15: warning: unused variable 'outB' [-Wunused-variable]
                vec3_t outA,outB;
                            ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:354:8: warning: unused variable 'bb' [-Wunused-variable]
        float bb, s, t;
              ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:355:9: warning: unused variable 'bary' [-Wunused-variable]
        vec3_t bary;
               ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:354:15: warning: unused variable 't' [-Wunused-variable]
        float bb, s, t;
                     ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:354:12: warning: unused variable 's' [-Wunused-variable]
        float bb, s, t;
                  ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:1777:12: warning: variable 'origin2' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/light_ydnar.c:1789:18: note: uninitialized use occurs here
        VectorSubtract( origin2, origin, originVecs[ 0 ] );
                        ^~~~~~~
libs/mathlib.h:72:48: note: expanded from macro 'VectorSubtract'
#define VectorSubtract( a,b,c ) ( ( c )[0] = ( a )[0] - ( b )[0],( c )[1] = ( a )[1] - ( b )[1],( c )[2] = ( a )[2] - ( b )[2] )
                                               ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:1777:7: note: remove the 'if' if its condition is always true
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/light_ydnar.c:1777:41: warning: variable 'origin2' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                                               ^~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/light_ydnar.c:1789:18: note: uninitialized use occurs here
        VectorSubtract( origin2, origin, originVecs[ 0 ] );
                        ^~~~~~~
libs/mathlib.h:72:48: note: expanded from macro 'VectorSubtract'
#define VectorSubtract( a,b,c ) ( ( c )[0] = ( a )[0] - ( b )[0],( c )[1] = ( a )[1] - ( b )[1],( c )[2] = ( a )[2] - ( b )[2] )
                                               ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:1777:41: note: remove the '&&' if its condition is always true
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                                               ^~~~~~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/light_ydnar.c:1764:31: note: initialize the variable 'origin2' to silence this warning
        float       *origin, *origin2, *normal; //%     , *normal2;
                                     ^
                                      = NULL
tools/urt/tools/quake3/q3map2/light_ydnar.c:1777:12: warning: variable 'origin' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/light_ydnar.c:1789:27: note: uninitialized use occurs here
        VectorSubtract( origin2, origin, originVecs[ 0 ] );
                                 ^~~~~~
libs/mathlib.h:72:59: note: expanded from macro 'VectorSubtract'
#define VectorSubtract( a,b,c ) ( ( c )[0] = ( a )[0] - ( b )[0],( c )[1] = ( a )[1] - ( b )[1],( c )[2] = ( a )[2] - ( b )[2] )
                                                          ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:1777:7: note: remove the 'if' if its condition is always true
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/light_ydnar.c:1777:41: warning: variable 'origin' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                                               ^~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/light_ydnar.c:1789:27: note: uninitialized use occurs here
        VectorSubtract( origin2, origin, originVecs[ 0 ] );
                                 ^~~~~~
libs/mathlib.h:72:59: note: expanded from macro 'VectorSubtract'
#define VectorSubtract( a,b,c ) ( ( c )[0] = ( a )[0] - ( b )[0],( c )[1] = ( a )[1] - ( b )[1],( c )[2] = ( a )[2] - ( b )[2] )
                                                          ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:1777:41: note: remove the '&&' if its condition is always true
        else if ( ( x > 0 && bx <= 0.0f ) || ( x == ( lm->sw - 1 ) && bx >= 0.0f ) ) {
                                               ^~~~~~~~~~~~~~~~~~~~~~~
tools/urt/tools/quake3/q3map2/light_ydnar.c:1764:21: note: initialize the variable 'origin' to silence this warning
        float       *origin, *origin2, *normal; //%     , *normal2;
                           ^
                            = NULL
tools/urt/tools/quake3/q3map2/light_ydnar.c:4000:15: warning: unused variable 'sx' [-Wunused-variable]
        int i, x, y, sx, sy, *cluster;
                     ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:4000:19: warning: unused variable 'sy' [-Wunused-variable]
        int i, x, y, sx, sy, *cluster;
                         ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:4001:54: warning: unused variable 'floodlight2' [-Wunused-variable]
        float               *origin, *normal, *floodlight, *floodlight2, average, samples;
                                                            ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:4001:67: warning: unused variable 'average' [-Wunused-variable]
        float               *origin, *normal, *floodlight, *floodlight2, average, samples;
                                                                         ^
tools/urt/tools/quake3/q3map2/light_ydnar.c:4001:76: warning: unused variable 'samples' [-Wunused-variable]
        float               *origin, *normal, *floodlight, *floodlight2, average, samples;
                                                                                  ^
15 warnings generated.
tools/urt/tools/quake3/q3map2/lightmaps_ydnar.c:452:6: warning: unused variable 'k' [-Wunused-variable]
        int k;
            ^
tools/urt/tools/quake3/q3map2/lightmaps_ydnar.c:2014:31: warning: unused variable 'sx' [-Wunused-variable]
        int i, j,  xMax, yMax, x, y, sx, sy, ox, oy, offset, temp;
                                     ^
tools/urt/tools/quake3/q3map2/lightmaps_ydnar.c:2014:35: warning: unused variable 'sy' [-Wunused-variable]
        int i, j,  xMax, yMax, x, y, sx, sy, ox, oy, offset, temp;
                                         ^
tools/urt/tools/quake3/q3map2/lightmaps_ydnar.c:2782:9: warning: unused variable 'size' [-Wunused-variable]
                                int size;
                                    ^
tools/urt/tools/quake3/q3map2/lightmaps_ydnar.c:1427:17: warning: unused function 'CompareBSPLuxels' [-Wunused-function]
static qboolean CompareBSPLuxels( rawLightmap_t *a, int aNum, rawLightmap_t *b, int bNum ){
                ^
tools/urt/tools/quake3/q3map2/lightmaps_ydnar.c:1521:17: warning: unused function 'MergeBSPLuxels' [-Wunused-function]
static qboolean MergeBSPLuxels( rawLightmap_t *a, int aNum, rawLightmap_t *b, int bNum ){
                ^
6 warnings generated.
tools/urt/tools/quake3/q3map2/exportents.c:66:14: warning: comparison of array 'bspEntData' equal to a null pointer is always false [-Wtautological-pointer-compare]
        if ( bspEntData == NULL || bspEntDataSize == 0 ) {
             ^~~~~~~~~~    ~~~~
1 warning generated.
tools/quake3/q3data/3dslib.c:65:34: warning: passing 'unsigned short *' to parameter of type 'short *' converts between pointers to integer types with different sign [-Wpointer-sign]
        while ( ReadChunkAndLength( fp, &chunkID, &chunkLen ) )
                                        ^~~~~~~~
tools/quake3/q3data/3dslib.c:50:49: note: passing argument to parameter 'chunk' here
static int ReadChunkAndLength( FILE *fp, short *chunk, long *len ){
                                                ^
tools/quake3/q3data/3dslib.c:97:34: warning: passing 'unsigned short *' to parameter of type 'short *' converts between pointers to integer types with different sign [-Wpointer-sign]
        while ( ReadChunkAndLength( fp, &chunkID, &chunkLen ) )
                                        ^~~~~~~~
tools/quake3/q3data/3dslib.c:50:49: note: passing argument to parameter 'chunk' here
static int ReadChunkAndLength( FILE *fp, short *chunk, long *len ){
                                                ^
tools/quake3/q3data/3dslib.c:246:34: warning: passing 'unsigned short *' to parameter of type 'short *' converts between pointers to integer types with different sign [-Wpointer-sign]
        while ( ReadChunkAndLength( fp, &chunkID, &chunkLen ) )
                                        ^~~~~~~~
tools/quake3/q3data/3dslib.c:50:49: note: passing argument to parameter 'chunk' here
static int ReadChunkAndLength( FILE *fp, short *chunk, long *len ){
                                                ^
tools/quake3/q3data/3dslib.c:365:34: warning: passing 'unsigned short *' to parameter of type 'short *' converts between pointers to integer types with different sign [-Wpointer-sign]
        while ( ReadChunkAndLength( fp, &chunkID, &chunkLen ) )
                                        ^~~~~~~~
tools/quake3/q3data/3dslib.c:50:49: note: passing argument to parameter 'chunk' here
static int ReadChunkAndLength( FILE *fp, short *chunk, long *len ){
                                                ^
tools/quake3/q3data/3dslib.c:351:6: warning: unused variable 'i' [-Wunused-variable]
        int i = 0;
            ^
tools/quake3/q3data/3dslib.c:410:34: warning: passing 'unsigned short *' to parameter of type 'short *' converts between pointers to integer types with different sign [-Wpointer-sign]
        while ( ReadChunkAndLength( fp, &chunkID, &chunkLen ) )
                                        ^~~~~~~~
tools/quake3/q3data/3dslib.c:50:49: note: passing argument to parameter 'chunk' here
static int ReadChunkAndLength( FILE *fp, short *chunk, long *len ){
                                                ^
tools/quake3/q3data/3dslib.c:473:32: warning: passing 'unsigned short *' to parameter of type 'short *' converts between pointers to integer types with different sign [-Wpointer-sign]
        if ( !ReadChunkAndLength( fp, &chunkID, &chunkLen ) ) {
                                      ^~~~~~~~
tools/quake3/q3data/3dslib.c:50:49: note: passing argument to parameter 'chunk' here
static int ReadChunkAndLength( FILE *fp, short *chunk, long *len ){
                                                ^
tools/quake3/q3data/3dslib.c:480:34: warning: passing 'unsigned short *' to parameter of type 'short *' converts between pointers to integer types with different sign [-Wpointer-sign]
        while ( ReadChunkAndLength( fp, &chunkID, &chunkLen ) )
                                        ^~~~~~~~
tools/quake3/q3data/3dslib.c:50:49: note: passing argument to parameter 'chunk' here
static int ReadChunkAndLength( FILE *fp, short *chunk, long *len ){
                                                ^
tools/quake3/q3data/3dslib.c:501:13: warning: unused function 'ComputeNormals' [-Wunused-function]
static void ComputeNormals( _3DSTriObject_t *pTO, triangle_t *pTris ){
            ^
9 warnings generated.
tools/quake3/common/aselib.c:119:14: warning: unused function 'strlwr' [-Wunused-function]
static char* strlwr( char* string ){
             ^
1 warning generated.
tools/quake3/common/imagelib.c:737:12: warning: variable 'bcHeight' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( structSize == 12 ) {
                  ^~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:768:7: note: uninitialized use occurs here
        if ( bcHeight < 0 ) {
             ^~~~~~~~
tools/quake3/common/imagelib.c:737:7: note: remove the 'if' if its condition is always true
        else if ( structSize == 12 ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:689:14: note: initialize the variable 'bcHeight' to silence this warning
        int bcHeight;
                    ^
                     = 0
tools/quake3/common/imagelib.c:737:12: warning: variable 'bcBitCount' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( structSize == 12 ) {
                  ^~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:764:7: note: uninitialized use occurs here
        if ( bcBitCount != 8 ) {
             ^~~~~~~~~~
tools/quake3/common/imagelib.c:737:7: note: remove the 'if' if its condition is always true
        else if ( structSize == 12 ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:691:16: note: initialize the variable 'bcBitCount' to silence this warning
        int bcBitCount;
                      ^
                       = 0
tools/quake3/common/imagelib.c:737:12: warning: variable 'bcPlanes' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( structSize == 12 ) {
                  ^~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:760:7: note: uninitialized use occurs here
        if ( bcPlanes != 1 ) {
             ^~~~~~~~
tools/quake3/common/imagelib.c:737:7: note: remove the 'if' if its condition is always true
        else if ( structSize == 12 ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/common/imagelib.c:690:14: note: initialize the variable 'bcPlanes' to silence this warning
        int bcPlanes;
                    ^
                     = 0
3 warnings generated.
tools/quake3/common/inout.c:76:26: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        ret = xmlNewNode( NULL, "point" );
                                ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:77:26: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( ret, buf );
                                ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:154:27: warning: passing 'char [7]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "select" );
                                 ^~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:155:27: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( node, buf );
                                 ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:158:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:158:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
tools/quake3/common/inout.c:161:29: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        select = xmlNewNode( NULL, "brush" );
                                   ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:162:29: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( select, buf );
                                   ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:181:27: warning: passing 'char [9]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "pointmsg" );
                                 ^~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:182:27: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( node, msg );
                                 ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:185:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:185:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
tools/quake3/common/inout.c:188:28: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        point = xmlNewNode( NULL, "point" );
                                  ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:189:28: warning: passing 'char [1024]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( point, buf );
                                  ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:205:27: warning: passing 'char [11]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "windingmsg" );
                                 ^~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:206:27: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( node, msg );
                                 ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:209:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:209:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
tools/quake3/common/inout.c:222:30: warning: passing 'char [8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        winding = xmlNewNode( NULL, "winding" );
                                    ^~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:223:30: warning: passing 'char [2048]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlNodeSetContent( winding, buf );
                                    ^~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:287:20: warning: passing 'char [4]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                doc = xmlNewDoc( "1.0" );
                                 ^~~~~
/opt/local/include/libxml2/libxml/tree.h:780:30: note: passing argument to parameter 'version' here
                xmlNewDoc               (const xmlChar *version);
                                                        ^
tools/quake3/common/inout.c:288:48: warning: passing 'char [15]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                doc->children = xmlNewDocRawNode( doc, NULL, "q3map_feedback", NULL );
                                                             ^~~~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:904:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:291:27: warning: passing 'char [8]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        node = xmlNewNode( NULL, "message" );
                                 ^~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:838:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name);
                                                        ^
tools/quake3/common/inout.c:294:28: warning: passing 'gchar *' (aka 'char *') to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
                xmlNodeSetContent( node, utf8 );
                                         ^~~~
/opt/local/include/libxml2/libxml/tree.h:1061:22: note: passing argument to parameter 'content' here
                                         const xmlChar *content);
                                                        ^
tools/quake3/common/inout.c:299:20: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                          ^~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1016:22: note: passing argument to parameter 'name' here
                                         const xmlChar *name,
                                                        ^
tools/quake3/common/inout.c:299:29: warning: passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        xmlSetProp( node, "level", (char *)&level );
                                   ^~~~~~~~~~~~~~
/opt/local/include/libxml2/libxml/tree.h:1017:22: note: passing argument to parameter 'value' here
                                         const xmlChar *value);
                                                        ^
26 warnings generated.
tools/quake3/q3data/md3lib.c:104:12: warning: variable 'shortestSide' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:107:6: note: uninitialized use occurs here
        len[shortestSide] = -1;
            ^~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:104:7: note: remove the 'if' if its condition is always true
        else if ( len[2] > len[0] && len[2] > len[1] ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:104:12: warning: variable 'shortestSide' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:107:6: note: uninitialized use occurs here
        len[shortestSide] = -1;
            ^~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:104:12: note: remove the '&&' if its condition is always true
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:38:31: note: initialize the variable 'shortestSide' to silence this warning
        int longestSide, shortestSide, hypotSide;
                                     ^
                                      = 0
tools/quake3/q3data/md3lib.c:93:12: warning: variable 'longestSide' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:96:6: note: uninitialized use occurs here
        len[longestSide] = -1;
            ^~~~~~~~~~~
tools/quake3/q3data/md3lib.c:93:7: note: remove the 'if' if its condition is always true
        else if ( len[2] > len[0] && len[2] > len[1] ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:93:12: warning: variable 'longestSide' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:96:6: note: uninitialized use occurs here
        len[longestSide] = -1;
            ^~~~~~~~~~~
tools/quake3/q3data/md3lib.c:93:12: note: remove the '&&' if its condition is always true
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:38:17: note: initialize the variable 'longestSide' to silence this warning
        int longestSide, shortestSide, hypotSide;
                       ^
                        = 0
tools/quake3/q3data/md3lib.c:81:12: warning: variable 'origin' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:124:25: note: uninitialized use occurs here
        pTag->origin[0] = pTri[origin][0];
                               ^~~~~~
tools/quake3/q3data/md3lib.c:81:7: note: remove the 'if' if its condition is always true
        else if ( len[2] > len[0] && len[2] > len[1] ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:81:12: warning: variable 'origin' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:124:25: note: uninitialized use occurs here
        pTag->origin[0] = pTri[origin][0];
                               ^~~~~~
tools/quake3/q3data/md3lib.c:81:12: note: remove the '&&' if its condition is always true
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:39:12: note: initialize the variable 'origin' to silence this warning
        int origin;
                  ^
                   = 0
tools/quake3/q3data/md3lib.c:81:12: warning: variable 'hypotSide' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:85:6: note: uninitialized use occurs here
        len[hypotSide] = -1;
            ^~~~~~~~~
tools/quake3/q3data/md3lib.c:81:7: note: remove the 'if' if its condition is always true
        else if ( len[2] > len[0] && len[2] > len[1] ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:81:12: warning: variable 'hypotSide' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:85:6: note: uninitialized use occurs here
        len[hypotSide] = -1;
            ^~~~~~~~~
tools/quake3/q3data/md3lib.c:81:12: note: remove the '&&' if its condition is always true
        else if ( len[2] > len[0] && len[2] > len[1] ) {
                  ^~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/md3lib.c:38:42: note: initialize the variable 'hypotSide' to silence this warning
        int longestSide, shortestSide, hypotSide;
                                                ^
                                                 = 0
tools/quake3/q3data/md3lib.c:152:25: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'FILE *' (aka 'struct __sFILE *') [-Wint-conversion]
        fileSize = filelength( fileno( fp ) );
                               ^~~~~~~~~~~~
tools/quake3/q3data/../common/cmdlib.h:79:25: note: passing argument to parameter 'f' here
int Q_filelength( FILE *f );
                        ^
tools/quake3/q3data/md3lib.c:153:32: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'FILE *' (aka 'struct __sFILE *') [-Wint-conversion]
        _buffer = malloc( filelength( fileno( fp ) ) );
                                      ^~~~~~~~~~~~
tools/quake3/q3data/../common/cmdlib.h:79:25: note: passing argument to parameter 'f' here
int Q_filelength( FILE *f );
                        ^
tools/quake3/q3data/md3lib.c:171:36: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
        printf( "  file size:      %d\n", fileSize );
                                   ~~     ^~~~~~~~
                                   %ld
11 warnings generated.
tools/quake3/q3data/models.c:1618:13: warning: unused function 'WriteMD3' [-Wunused-function]
static void WriteMD3( const char *_filename, ObjectAnimationFrame_t oanims[], int numFrames ){
            ^
1 warning generated.
tools/quake3/q3data/p3dlib.c:70:12: warning: implicit declaration of function 'Q_filelength' is invalid in C99 [-Wimplicit-function-declaration]
        p3d.len = filelength( fileno( fp ) );
                  ^
tools/quake3/q3data/p3dlib.c:35:20: note: expanded from macro 'filelength'
#define filelength Q_filelength
                   ^
tools/quake3/q3data/p3dlib.c:105:9: warning: implicit declaration of function 'Q_stricmp' is invalid in C99 [-Wimplicit-function-declaration]
                if ( !_strcmpi( s_token, name ) ) {
                      ^
tools/quake3/q3data/p3dlib.c:34:18: note: expanded from macro '_strcmpi'
#define _strcmpi Q_stricmp
                 ^
2 warnings generated.
tools/quake3/q3data/polyset.c:87:7: warning: variable 'psets' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        if ( strstr( file, ".3DS" ) || strstr( file, ".3ds" ) ) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/polyset.c:112:34: note: uninitialized use occurs here
        finalpsets = Polyset_SplitSets( psets, *numpolysets, numpolysets, maxTrisPerSet );
                                        ^~~~~
tools/quake3/q3data/polyset.c:87:2: note: remove the 'if' if its condition is always true
        if ( strstr( file, ".3DS" ) || strstr( file, ".3ds" ) ) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/quake3/q3data/polyset.c:81:18: note: initialize the variable 'psets' to silence this warning
        polyset_t *psets;
                        ^
                         = NULL
1 warning generated.
tools/quake3/q3data/q3data.c:352:6: warning: unused variable 'len' [-Wunused-variable]
        int len;
            ^
1 warning generated.
tools/quake3/q3data/stripper.c:37:6: warning: unused variable 'sum' [-Wunused-variable]
        int sum = 0;
            ^
tools/quake3/q3data/stripper.c:160:6: warning: unused variable 'startTri' [-Wunused-variable]
        int startTri = -1;
            ^
2 warnings generated.
tools/quake3/common/unzip.c:1202:14: warning: unused function 'zcalloc' [-Wunused-function]
static voidp zcalloc OF((voidp opaque, unsigned items, unsigned size));
             ^
tools/quake3/common/unzip.c:1203:14: warning: unused function 'zcfree' [-Wunused-function]
static void  zcfree  OF((voidp opaque, voidp ptr));
             ^
tools/quake3/common/unzip.c:2695:20: warning: unused variable 'crc_table' [-Wunused-const-variable]
static const uLong crc_table[256] = {
                   ^
tools/quake3/common/unzip.c:2837:19: warning: unused variable 'border' [-Wunused-const-variable]
static const uInt border[] = { /* Order of the bit length code lengths */
                  ^
tools/quake3/common/unzip.c:3555:12: warning: unused function 'huft_build' [-Wunused-function]
static int huft_build(uInt *b, uInt n, uInt s, const uInt *d, const uInt *e, inflate_huft ** t, uInt *m, inflate_huft *hp, uInt *hn, uInt *v)
           ^
tools/quake3/common/unzip.c:3503:19: warning: unused variable 'cplens' [-Wunused-const-variable]
static const uInt cplens[31] = { /* Copy lengths for literal codes 257..285 */
                  ^
tools/quake3/common/unzip.c:3507:19: warning: unused variable 'cplext' [-Wunused-const-variable]
static const uInt cplext[31] = { /* Extra bits for literal codes 257..285 */
                  ^
tools/quake3/common/unzip.c:3510:19: warning: unused variable 'cpdist' [-Wunused-const-variable]
static const uInt cpdist[30] = { /* Copy offsets for distance codes 0..29 */
                  ^
tools/quake3/common/unzip.c:3514:19: warning: unused variable 'cpdext' [-Wunused-const-variable]
static const uInt cpdext[30] = { /* Extra bits for distance codes */
                  ^
tools/quake3/common/unzip.c:3858:13: warning: unused variable 'fixed_bl' [-Wunused-variable]
static uInt fixed_bl = 9;
            ^
tools/quake3/common/unzip.c:3859:13: warning: unused variable 'fixed_bd' [-Wunused-variable]
static uInt fixed_bd = 5;
            ^
tools/quake3/common/unzip.c:3860:21: warning: unused variable 'fixed_tl' [-Wunused-variable]
static inflate_huft fixed_tl[] = {
                    ^
tools/quake3/common/unzip.c:3990:21: warning: unused variable 'fixed_td' [-Wunused-variable]
static inflate_huft fixed_td[] = {
                    ^
13 warnings generated.
tools/quake3/common/vfs.c:148:3: warning: 'g_strdown' is deprecated [-Wdeprecated-declarations]
                g_strdown( filename_inzip );
                ^
/opt/local/include/glib-2.0/glib/gstrfuncs.h:207:23: note: 'g_strdown' has been explicitly marked deprecated here
gchar*                g_strdown        (gchar       *string);
                      ^
tools/quake3/common/vfs.c:239:2: warning: 'g_strdown' is deprecated [-Wdeprecated-declarations]
        g_strdown( fixed );
        ^
/opt/local/include/glib-2.0/glib/gstrfuncs.h:207:23: note: 'g_strdown' has been explicitly marked deprecated here
gchar*                g_strdown        (gchar       *string);
                      ^
tools/quake3/common/vfs.c:299:2: warning: 'g_strdown' is deprecated [-Wdeprecated-declarations]
        g_strdown( fixed );
        ^
/opt/local/include/glib-2.0/glib/gstrfuncs.h:207:23: note: 'g_strdown' has been explicitly marked deprecated here
gchar*                g_strdown        (gchar       *string);
                      ^
3 warnings generated.
tools/quake3/q3data/video.c:109:18: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
                if ( !strncmp( data_p, name, 4 ) ) {
                               ^~~~~~
/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here
int      strncmp(const char *__s1, const char *__s2, size_t __n);
                             ^
tools/quake3/q3data/video.c:158:30: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        if ( !( data_p && !strncmp( data_p + 8, "WAVE", 4 ) ) ) {
                                    ^~~~~~~~~~
/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here
int      strncmp(const char *__s1, const char *__s2, size_t __n);
                             ^
tools/quake3/q3data/video.c:194:19: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
                        if ( !strncmp( data_p + 28, "mark", 4 ) ) { // this is not a proper parse, but it works with cooledit...
                                       ^~~~~~~~~~~
/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here
int      strncmp(const char *__s1, const char *__s2, size_t __n);
                             ^
tools/quake3/q3data/video.c:632:41: warning: incompatible pointer types passing 'unsigned int [2][2]' to parameter of type 'unsigned long (*)[2]' [-Wincompatible-pointer-types]
                                        error = BTCQuantizeBlock( inBlock, endPoints, btcQuantizedBlock, -1 ); //bestError );
                                                                           ^~~~~~~~~
tools/quake3/q3data/video.c:517:70: note: passing argument to parameter 'endPoints' here
static float BTCQuantizeBlock( float inBlock[4][4][3], unsigned long endPoints[2][2], int btcQuantizedBlock[4][4], float bestError ){
                                                                     ^
tools/quake3/q3data/video.c:643:37: warning: incompatible pointer types passing 'unsigned int [2][2]' to parameter of type 'unsigned long (*)[2]' [-Wincompatible-pointer-types]
        error = BTCQuantizeBlock( inBlock, bestEndPoints, btcQuantizedBlock, -1.0f );
                                           ^~~~~~~~~~~~~
tools/quake3/q3data/video.c:517:70: note: passing argument to parameter 'endPoints' here
static float BTCQuantizeBlock( float inBlock[4][4][3], unsigned long endPoints[2][2], int btcQuantizedBlock[4][4], float bestError ){
                                                                     ^
tools/quake3/q3data/video.c:1110:30: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
        printf( "Total size: %i\n", ftell( output ) );
                             ~~     ^~~~~~~~~~~~~~~
                             %li
tools/quake3/q3data/video.c:468:13: warning: unused function 'BTCFindEndpoints' [-Wunused-function]
static void BTCFindEndpoints( float inBlock[4][4][3], unsigned int endPoints[2][2] ){
            ^
7 warnings generated.

jdolan avatar Apr 27 '17 15:04 jdolan

This one is interesting: tools/quake3/common/vfs.c:148:3: warning: 'g_strdown' is deprecated [-Wdeprecated-declarations] See https://developer.gnome.org/glib/stable/glib-String-Utility-Functions.html#g-strdown

Pan7 avatar Apr 29 '17 11:04 Pan7

Attached is an updated build log (warnings only). radiant.log.txt

jdolan avatar Jul 08 '17 23:07 jdolan

Attached is the updated stderr log @Pan7

Thanks for chipping away at these!

radiant.txt

jdolan avatar Aug 13 '17 18:08 jdolan