* jartool.h (__attribute__): New define.
* shift.c (shift_up): Added cast.
(shift_down): Likewise.
* jartool.c (help): Split string constant.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107681
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-11-29 Tom Tromey <tromey@redhat.com>
+
+ * compress.c (write_data): Mark 'ze' as unused.
+ * jartool.h (__attribute__): New define.
+ * shift.c (shift_up): Added cast.
+ (shift_down): Likewise.
+ * jartool.c (help): Split string constant.
+
2005-06-29 Kelley Cook <kcook@gcc.gnu.org>
* all files: Update FSF address.
}
int
-write_data (int fd, void *buf, size_t len, struct zipentry *ze)
+write_data (int fd, void *buf, size_t len,
+ struct zipentry *ze __attribute__((unused)))
{
#ifdef WITH_SHIFT_DOWN
struct zipentry *next = NULL;
-E don't include the files found in a directory\n\
-f FILE specify archive file name\n\
--help print this help, then exit\n\
+");
+ printf("\
-m FILE include manifest information from specified manifest file\n\
-M Do not create a manifest file for the entries\n\
-v generate verbose output on standard output\n\
/*
jartool.h - generic defines, struct defs etc.
- Copyright (C) 1999 Bryan Burns
+ Copyright (C) 1999, 2005 Bryan Burns
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
typedef struct zipentry zipentry;
+#ifndef __GNUC__
+#define __attribute__()
+#endif
+
#endif /* __FASTJAR_JARTOOL_H__ */
/* shift.c -- utilities to move regions of data in a file.
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
for (; ze; ze = ze->next_entry)
{
- if (ze->offset >= begin)
+ if ((off_t) ze->offset >= begin)
{
ze->offset -= amount;
moved = 1;
for (; ze; ze = ze->next_entry)
{
- if (ze->offset >= begin)
+ if ((off_t) ze->offset >= begin)
{
ze->offset += amount;
moved = 1;