aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-brilliance.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-01 03:23:03 +0100
committerMattias Andrée <maandree@kth.se>2016-12-01 03:23:03 +0100
commit9ecf9c624c5272cf8d576ec173283ebfe72fd373 (patch)
tree8e098894b688a45144a6e7de81b97959490f0785 /src/cg-brilliance.c
parentAdd makefile (diff)
downloadcg-tools-9ecf9c624c5272cf8d576ec173283ebfe72fd373.tar.gz
cg-tools-9ecf9c624c5272cf8d576ec173283ebfe72fd373.tar.bz2
cg-tools-9ecf9c624c5272cf8d576ec173283ebfe72fd373.tar.xz
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/cg-brilliance.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cg-brilliance.c b/src/cg-brilliance.c
index 16b406a..0e631d0 100644
--- a/src/cg-brilliance.c
+++ b/src/cg-brilliance.c
@@ -35,7 +35,7 @@ const int64_t default_priority = ((int64_t)1) << 61;
/**
* The default class for the program
*/
-char* const default_class = PKGNAME "::cg-brilliance::standard";
+char default_class[] = PKGNAME "::cg-brilliance::standard";
@@ -114,6 +114,7 @@ int handle_opt(char* opt, char* arg)
else
usage();
return 0;
+ (void) arg;
}
@@ -129,7 +130,7 @@ static int parse_double(double* restrict out, const char* restrict str)
char* end;
errno = 0;
*out = strtod(str, &end);
- if (errno || (out < 0) || isinf(*out) || isnan(*out) || *end)
+ if (errno || (*out < 0) || isinf(*out) || isnan(*out) || *end)
return -1;
if (!strchr("0123456789.", *str))
return -1;
@@ -184,6 +185,7 @@ int handle_args(int argc, char* argv[], char* method, char* site,
usage();
}
return 0;
+ (void) site;
}