All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Warning fixes
@ 2008-08-06 13:39 Pavel Roskin
  2008-08-06 13:58 ` Colin D Bennett
  2008-08-13 10:18 ` Marco Gerards
  0 siblings, 2 replies; 5+ messages in thread
From: Pavel Roskin @ 2008-08-06 13:39 UTC (permalink / raw)
  To: The development of GRUB 2

Hello!

I've fixed the trivial stuff, but this may require comments.  I'll be
mostly offline for the next 3 weeks, so if it's OK, please apply it for
me.

ChangeLog:

	* disk/ata.c (grub_ata_pciinit): Mark pciid unused.
	* commands/i386/pc/pxecmd.c (grub_cmd_pxe): Mark argc and args
	unused.
	* include/grub/i386/pc/pxe.h (grub_pxenv_tftp_open): Use char
	instead of grub_uint8_t for strings.
	(grub_pxenv_tftp_get_fsize): Likewise.

Index: disk/ata.c
===================================================================
--- disk/ata.c	(revision 1784)
+++ disk/ata.c	(working copy)
@@ -429,7 +429,8 @@
 }
 
 static int
-grub_ata_pciinit (int bus, int device, int func, grub_pci_id_t pciid)
+grub_ata_pciinit (int bus, int device, int func,
+		  grub_pci_id_t pciid __attribute__ ((unused)))
 {
   static int compat_use[2] = { 0 };
   grub_pci_address_t addr;
Index: include/grub/i386/pc/pxe.h
===================================================================
--- include/grub/i386/pc/pxe.h	(revision 1784)
+++ include/grub/i386/pc/pxe.h	(working copy)
@@ -236,7 +236,7 @@
   grub_uint16_t status;
   grub_uint32_t server_ip;
   grub_uint32_t gateway_ip;
-  grub_uint8_t filename[128];
+  char filename[128];
   grub_uint16_t tftp_port;
   grub_uint16_t packet_size;
 } __attribute__ ((packed));
@@ -259,7 +259,7 @@
   grub_uint16_t status;
   grub_uint32_t server_ip;
   grub_uint32_t gateway_ip;
-  grub_uint8_t filename[128];
+  char filename[128];
   grub_uint32_t file_size;
 } __attribute__ ((packed));
 
Index: commands/i386/pc/pxecmd.c
===================================================================
--- commands/i386/pc/pxecmd.c	(revision 1784)
+++ commands/i386/pc/pxecmd.c	(working copy)
@@ -46,7 +46,9 @@
 }
 
 static grub_err_t
-grub_cmd_pxe (struct grub_arg_list *state, int argc, char **args)
+grub_cmd_pxe (struct grub_arg_list *state,
+	      int argc __attribute__ ((unused)),
+	      char **args __attribute__ ((unused)))
 {
   if (! grub_pxe_pxenv)
     return grub_error (GRUB_ERR_FILE_NOT_FOUND, "no pxe environment");

-- 
Regards,
Pavel Roskin



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-13 10:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 13:39 [PATCH] Warning fixes Pavel Roskin
2008-08-06 13:58 ` Colin D Bennett
2008-08-06 14:32   ` Pavel Roskin
2008-08-06 15:08     ` Colin D Bennett
2008-08-13 10:18 ` Marco Gerards

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.