diff options
Diffstat (limited to 'src/cg-rainbow.c')
-rw-r--r-- | src/cg-rainbow.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cg-rainbow.c b/src/cg-rainbow.c index b60c860..35f9619 100644 --- a/src/cg-rainbow.c +++ b/src/cg-rainbow.c @@ -15,8 +15,6 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#define _DEFAULT_SOURCE -#define _BSD_SOURCE #include "cg-base.h" #include <libclut.h> @@ -40,7 +38,7 @@ const int64_t default_priority = ((int64_t)1) << 60; /** * The default class for the program */ -char* const default_class = PKGNAME "::cg-rainbow::standard"; +char default_class[] = PKGNAME "::cg-rainbow::standard"; @@ -127,7 +125,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; @@ -171,6 +169,8 @@ int handle_args(int argc, char* argv[], char* method, char* site, usage(); } return 0; + (void) site; + (void) argv; } |