svn commit: r296724 - head/usr.sbin/gpioctl
Dimitry Andric
dim at FreeBSD.org
Sat Mar 12 15:10:32 UTC 2016
Author: dim
Date: Sat Mar 12 15:10:30 2016
New Revision: 296724
URL: https://svnweb.freebsd.org/changeset/base/296724
Log:
Fix gcc warnings about possibly uninitialized variables in gpioctl.c.
Noticed by: bz
Modified:
head/usr.sbin/gpioctl/gpioctl.c
Modified: head/usr.sbin/gpioctl/gpioctl.c
==============================================================================
--- head/usr.sbin/gpioctl/gpioctl.c Sat Mar 12 14:54:34 2016 (r296723)
+++ head/usr.sbin/gpioctl/gpioctl.c Sat Mar 12 15:10:30 2016 (r296724)
@@ -41,7 +41,6 @@ __FBSDID("$FreeBSD$");
#include <libgpio.h>
-#define PIN_TYPE_UNKNOWN 0
#define PIN_TYPE_NUMBER 1
#define PIN_TYPE_NAME 2
@@ -271,7 +270,7 @@ main(int argc, char **argv)
/* Find the pin number by the name */
switch (pin_type) {
- case PIN_TYPE_UNKNOWN:
+ default:
/* First test if it is a pin number */
pinn = str2int(argv[0], &ok);
if (ok) {
More information about the svn-src-all
mailing list