aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-04-04 12:18:47 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-04-17 11:23:42 +0100
commit88cebcdc03a4aefa978b20b5f60e7ea10f07b797 (patch)
treef4c4aadbfe45dcf27b4f58ad7b50ff4965378f4f /com32/modules
parent461106274b69693d46734d448b7e5702fba4f229 (diff)
downloadsyslinux-88cebcdc03a4aefa978b20b5f60e7ea10f07b797.tar.gz
syslinux-88cebcdc03a4aefa978b20b5f60e7ea10f07b797.tar.xz
syslinux-88cebcdc03a4aefa978b20b5f60e7ea10f07b797.zip
Mark unused function parameters as __unused
Move the __unused tag from com32/hdt/ to com32/include/klibc/ so that it can be used by the entire code base, and mark unused function parameters as __unused to stop the following kind of build warning, elflink/load_env32.c: In function ‘load_env32’: elflink/load_env32.c:107:30: warning: unused parameter ‘regs’ Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/modules')
-rw-r--r--com32/modules/hello.c2
-rw-r--r--com32/modules/meminfo.c2
-rw-r--r--com32/modules/vesainfo.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/com32/modules/hello.c b/com32/modules/hello.c
index f28d38d3..d3d4d299 100644
--- a/com32/modules/hello.c
+++ b/com32/modules/hello.c
@@ -13,7 +13,7 @@
#define NUM_COUNT 10
#define MAX_NUM 100
-int main(int argc, char **argv)
+int main(int argc __unused, char **argv __unused)
{
int *nums = NULL;
diff --git a/com32/modules/meminfo.c b/com32/modules/meminfo.c
index a1abc36b..34b3e91d 100644
--- a/com32/modules/meminfo.c
+++ b/com32/modules/meminfo.c
@@ -122,7 +122,7 @@ static void dump_legacy(void)
oreg.ecx.w[0], oreg.ecx.w[0], oreg.edx.w[0], oreg.edx.w[0] << 6);
}
-int main(int argc, char **argv)
+int main(int argc __unused, char **argv __unused)
{
dump_legacy();
dump_e820();
diff --git a/com32/modules/vesainfo.c b/com32/modules/vesainfo.c
index 382bd14a..66b121d7 100644
--- a/com32/modules/vesainfo.c
+++ b/com32/modules/vesainfo.c
@@ -83,7 +83,7 @@ exit:
return;
}
-int main(int argc, char **argv)
+int main(int argc __unused, char **argv __unused)
{
print_modes();
return 0;