Build Fix -- compatibility issue with newer autoconf
[sxemacs] / src / ui / lwlib / xlwtabs.c
index 8a34596..ce5d2b1 100644 (file)
@@ -16,7 +16,7 @@ General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
- /* Synched up with: Tabs.c 1.27.  
+ /* Synched up with: Tabs.c 1.27.
 
     #### This file contains essential XEmacs related fixes to the original
     verison of the Tabs widget. Be VERY careful about syncing if you ever
@@ -572,6 +572,7 @@ static void TabsResize(Widget w)
                                tab =
                                    (TabsConstraints) (*childP)->core.
                                    constraints;
+                               SXE_SET_UNUSED(tab);
                                bw = (*childP)->core.border_width;
                                /* Don't do anything if we can't see any of the child. */
                                if (ch >= bw * 2 && ch > 0 && cw >= bw * 2
@@ -1236,7 +1237,7 @@ void XawTabsSetTop(Widget w, Bool callCallbacks)
                int n = snprintf(line, sizeof(line),
                        "XawTabsSetTop: widget \"%.64s\" is not the child of a tabs widget.",
                        XtName(w));
-               assert(n >= 0 && n < sizeof(line));
+               assert(n >= 0 && (size_t)n < sizeof(line));
                XtAppWarning(XtWidgetToApplicationContext(w), line);
                return;
        }