From e7a5c0690f72ef75bf239ff2518b9360b1d6591d Mon Sep 17 00:00:00 2001 From: Chris Kuethe Date: Mon, 11 Oct 2021 18:34:33 -0700 Subject: [PATCH] shut up some warnings --- src/Makefile | 2 +- src/capture.cpp | 3 +-- src/capture_RPiHQ.cpp | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Makefile b/src/Makefile index 89c5364d0..94d2e2e23 100644 --- a/src/Makefile +++ b/src/Makefile @@ -34,7 +34,7 @@ endif USB=$(shell pkg-config --exists libusb-1.0 && pkg-config --cflags --libs libusb-1.0) DEFS = -D_LIN -D_DEBUG -DGLIBC_20 -CFLAGS = -Wall -Wno-psabi -g -O2 -lpthread +CFLAGS = -Wall -Wno-psabi -Wno-unused-result -g -O2 -lpthread OPENCV = $(shell pkg-config --exists opencv && pkg-config --cflags --libs opencv || (pkg-config --exists opencv4 && pkg-config --cflags --libs opencv4)) ifeq ($(platform), armv6l) diff --git a/src/capture.cpp b/src/capture.cpp index 2236953c3..a60bbc30f 100644 --- a/src/capture.cpp +++ b/src/capture.cpp @@ -568,8 +568,7 @@ void IntHandle(int i) void waitToFix(char const *msg) { printf("**********\n"); - printf(msg); - printf("\n"); + printf("%s\n", msg); printf("*** After fixing, "); if (tty) printf("restart allsky.sh.\n"); diff --git a/src/capture_RPiHQ.cpp b/src/capture_RPiHQ.cpp index 04d25965b..d86ec14c8 100644 --- a/src/capture_RPiHQ.cpp +++ b/src/capture_RPiHQ.cpp @@ -163,8 +163,7 @@ void IntHandle(int i) void waitToFix(char const *msg) { printf("**********\n"); - printf(msg); - printf("\n"); + printf("%s\n", msg); printf("*** After fixing, "); if (tty) printf("restart allsky.sh.\n");