[babl] main args not used.
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] main args not used.
- Date: Sun, 21 Aug 2022 11:40:15 +0000 (UTC)
commit d48f0c4734f05f5c7a41225dc868bc4780c9e019
Author: Axel Viala <axel viala darnuria eu>
Date: Fri Mar 25 15:25:00 2022 +0100
main args not used.
tests/alpha_symmetric_transform.c | 3 +--
tests/babl_class_name.c | 3 +--
tests/cairo_cmyk_hack.c | 3 +--
tests/chromaticities.c | 3 +--
tests/cmyk.c | 3 +--
tests/concurrency-stress-test.c | 3 +--
tests/conversions.c | 3 +--
tests/extract.c | 3 +--
tests/float-to-8bit.c | 3 +--
tests/floatclamp.c | 3 +--
tests/format_with_space.c | 3 +--
tests/grayscale_to_rgb.c | 3 +--
tests/hsl.c | 3 +--
tests/hsva.c | 3 +--
tests/n_components.c | 3 +--
tests/n_components_cast.c | 3 +--
tests/nop.c | 3 +--
tests/palette-concurrency-stress-test.c | 3 +--
tests/palette.c | 3 +--
tests/rgb_to_bgr.c | 3 +--
tests/rgb_to_ycbcr.c | 3 +--
tests/sanity.c | 3 +--
tests/srgb_to_lab_u8.c | 3 +--
tests/transparent.c | 3 +--
tests/xyz_to_lab.c | 3 +--
tools/babl-lut-verify.c | 2 +-
tools/introspect.c | 3 +--
tools/trc-validator.c | 3 +--
28 files changed, 28 insertions(+), 55 deletions(-)
---
diff --git a/tests/alpha_symmetric_transform.c b/tests/alpha_symmetric_transform.c
index a42709af7..aff23ce99 100644
--- a/tests/alpha_symmetric_transform.c
+++ b/tests/alpha_symmetric_transform.c
@@ -100,8 +100,7 @@ test (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (test ())
diff --git a/tests/babl_class_name.c b/tests/babl_class_name.c
index c0724f048..caec910c8 100644
--- a/tests/babl_class_name.c
+++ b/tests/babl_class_name.c
@@ -63,8 +63,7 @@ test (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (test ())
diff --git a/tests/cairo_cmyk_hack.c b/tests/cairo_cmyk_hack.c
index 1f308fe39..f68cd9af4 100644
--- a/tests/cairo_cmyk_hack.c
+++ b/tests/cairo_cmyk_hack.c
@@ -69,8 +69,7 @@ test (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (test ())
diff --git a/tests/chromaticities.c b/tests/chromaticities.c
index a57ceada9..963650c49 100644
--- a/tests/chromaticities.c
+++ b/tests/chromaticities.c
@@ -66,8 +66,7 @@ test (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (test ())
diff --git a/tests/cmyk.c b/tests/cmyk.c
index 3b11e449c..cc2996367 100644
--- a/tests/cmyk.c
+++ b/tests/cmyk.c
@@ -23,8 +23,7 @@
int
-main (int argc,
- char **argv)
+main (void)
{
int OK = 1;
diff --git a/tests/concurrency-stress-test.c b/tests/concurrency-stress-test.c
index a02a519b9..bf0ffff60 100644
--- a/tests/concurrency-stress-test.c
+++ b/tests/concurrency-stress-test.c
@@ -49,8 +49,7 @@ babl_fish_path_stress_test_thread_func (void *not_used)
}
int
-main (int argc,
- char **argv)
+main (void)
{
pthread_t threads[N_THREADS];
int i;
diff --git a/tests/conversions.c b/tests/conversions.c
index 3a68445a0..d699b21ca 100644
--- a/tests/conversions.c
+++ b/tests/conversions.c
@@ -55,8 +55,7 @@
};
int
-main (int argc,
- char **argv)
+main (void)
{
putenv ("BABL_DEBUG_CONVERSIONS" "=" "1");
putenv ("BABL_DEBUG_MISSING" "=" "1");
diff --git a/tests/extract.c b/tests/extract.c
index ffd9f5cc0..06f143e13 100644
--- a/tests/extract.c
+++ b/tests/extract.c
@@ -24,8 +24,7 @@
#include "common.inc"
int
-main (int argc,
- char **argv)
+main (void)
{
int OK = 1;
babl_init ();
diff --git a/tests/float-to-8bit.c b/tests/float-to-8bit.c
index 1a3cafc35..01d599720 100644
--- a/tests/float-to-8bit.c
+++ b/tests/float-to-8bit.c
@@ -26,8 +26,7 @@
int
-main (int argc,
- char **argv)
+main (void)
{
int OK = 1;
diff --git a/tests/floatclamp.c b/tests/floatclamp.c
index 7960e1341..7878e2e60 100644
--- a/tests/floatclamp.c
+++ b/tests/floatclamp.c
@@ -26,8 +26,7 @@
int
-main (int argc,
- char **argv)
+main (void)
{
int OK = 1;
babl_init ();
diff --git a/tests/format_with_space.c b/tests/format_with_space.c
index 34f53322a..c26384c1b 100644
--- a/tests/format_with_space.c
+++ b/tests/format_with_space.c
@@ -96,8 +96,7 @@ test3 (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (test2 ())
diff --git a/tests/grayscale_to_rgb.c b/tests/grayscale_to_rgb.c
index c3ec7c7a6..cd4063eb8 100644
--- a/tests/grayscale_to_rgb.c
+++ b/tests/grayscale_to_rgb.c
@@ -72,8 +72,7 @@ test (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (test ())
diff --git a/tests/hsl.c b/tests/hsl.c
index aaa1855ce..54659cfc4 100644
--- a/tests/hsl.c
+++ b/tests/hsl.c
@@ -23,8 +23,7 @@
int
-main (int argc,
- char **argv)
+main (void)
{
int OK = 1;
diff --git a/tests/hsva.c b/tests/hsva.c
index 66b93b87d..c2a224b5e 100644
--- a/tests/hsva.c
+++ b/tests/hsva.c
@@ -32,8 +32,7 @@
int
-main (int argc,
- char **argv)
+main (void)
{
int OK = 1;
diff --git a/tests/n_components.c b/tests/n_components.c
index afe5d257f..9cb893585 100644
--- a/tests/n_components.c
+++ b/tests/n_components.c
@@ -105,8 +105,7 @@ test (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (test ())
diff --git a/tests/n_components_cast.c b/tests/n_components_cast.c
index 86c6437dc..f654aa7af 100644
--- a/tests/n_components_cast.c
+++ b/tests/n_components_cast.c
@@ -24,8 +24,7 @@
#include "common.inc"
int
-main (int argc,
- char **argv)
+main (void)
{
int OK = 1;
babl_init ();
diff --git a/tests/nop.c b/tests/nop.c
index 0ea6fe0d7..1d8bbd27c 100644
--- a/tests/nop.c
+++ b/tests/nop.c
@@ -20,8 +20,7 @@
#include "babl.h"
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
babl_exit ();
diff --git a/tests/palette-concurrency-stress-test.c b/tests/palette-concurrency-stress-test.c
index a42b15d95..9dee76842 100644
--- a/tests/palette-concurrency-stress-test.c
+++ b/tests/palette-concurrency-stress-test.c
@@ -52,8 +52,7 @@ thread_proc (void *data)
}
int
-main (int argc,
- char **argv)
+main (void)
{
const Babl *pal;
const Babl *pal_format;
diff --git a/tests/palette.c b/tests/palette.c
index 92651d001..3fd64c4da 100644
--- a/tests/palette.c
+++ b/tests/palette.c
@@ -24,8 +24,7 @@
#include "common.inc"
int
-main (int argc,
- char **argv)
+main (void)
{
int OK = 1;
babl_init ();
diff --git a/tests/rgb_to_bgr.c b/tests/rgb_to_bgr.c
index 4e6322237..37596734f 100644
--- a/tests/rgb_to_bgr.c
+++ b/tests/rgb_to_bgr.c
@@ -79,8 +79,7 @@ test (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (test ())
diff --git a/tests/rgb_to_ycbcr.c b/tests/rgb_to_ycbcr.c
index c02f7433d..60222112d 100644
--- a/tests/rgb_to_ycbcr.c
+++ b/tests/rgb_to_ycbcr.c
@@ -86,8 +86,7 @@ test (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (test ())
diff --git a/tests/sanity.c b/tests/sanity.c
index 28158ee83..b84c299d2 100644
--- a/tests/sanity.c
+++ b/tests/sanity.c
@@ -20,8 +20,7 @@
#include "babl-internal.h"
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (!babl_sanity ())
diff --git a/tests/srgb_to_lab_u8.c b/tests/srgb_to_lab_u8.c
index b99538f11..f8b04fc42 100644
--- a/tests/srgb_to_lab_u8.c
+++ b/tests/srgb_to_lab_u8.c
@@ -66,8 +66,7 @@ test (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (test ())
diff --git a/tests/transparent.c b/tests/transparent.c
index 7cbc6ea3f..dd6636610 100644
--- a/tests/transparent.c
+++ b/tests/transparent.c
@@ -45,8 +45,7 @@ clear_fish_db (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
int OK = 1;
int i;
diff --git a/tests/xyz_to_lab.c b/tests/xyz_to_lab.c
index dd86281c4..c8e0b81e1 100644
--- a/tests/xyz_to_lab.c
+++ b/tests/xyz_to_lab.c
@@ -64,8 +64,7 @@ test (void)
}
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
if (test ())
diff --git a/tools/babl-lut-verify.c b/tools/babl-lut-verify.c
index 2c611e49d..c9f961618 100644
--- a/tools/babl-lut-verify.c
+++ b/tools/babl-lut-verify.c
@@ -56,7 +56,7 @@ test_generic (const Babl *source, const Babl *dest)
return error;
}
-int main (int argc, char **argv)
+int main (void)
{
double error = 0;
setenv ("BABL_INHIBIT_CACHE", "1", 1);
diff --git a/tools/introspect.c b/tools/introspect.c
index 5cd667f94..26a32d802 100644
--- a/tools/introspect.c
+++ b/tools/introspect.c
@@ -20,8 +20,7 @@
#include "babl-internal.h"
int
-main (int argc,
- char **argv)
+main (void)
{
babl_init ();
babl_introspect (NULL);
diff --git a/tools/trc-validator.c b/tools/trc-validator.c
index 7bf1eaa8b..2e03381f6 100644
--- a/tools/trc-validator.c
+++ b/tools/trc-validator.c
@@ -185,8 +185,7 @@ to_linear_ref (float x)
}
int
-main (int argc,
- char **argv)
+main (void)
{
int i;
float max_diff = 0.0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]