Fixing warning about freediving

Dirk Hohndel dirk at hohndel.org
Wed Oct 21 15:16:52 PDT 2015


I was just about to look at that warning. Thanks for fixing it. I rewrote
both your patch and your commit message, though :-)

/D

On Wed, Oct 21, 2015 at 11:40:11PM +0200, Guido Lerch wrote:
> trashed my subsurface folder and started from scratch today with the last
> master @  4722df8
> 
> while building I got a warning
> 
> 
> 
> -- 
> Best regards,
> Guido

> From b1888cc5a96a8fd32b2fa57bfce8f013157df742 Mon Sep 17 00:00:00 2001
> From: Guido Lerch <guido.lerch at gmail.com>
> Date: Wed, 21 Oct 2015 23:35:41 +0200
> Subject: [PATCH] Fixing build warning about freediving
> 
> This just fixes an issue with freediving not being with a switch statement
> that was a little annoying.
> 
> location: profice.c
> function: plot_string
> 
> Signed-off-by: Guido Lerch <guido.lerch at gmail.com>
> ---
>  profile.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/profile.c b/profile.c
> index 55cf629..4bfb5ff 100644
> --- a/profile.c
> +++ b/profile.c
> @@ -1173,6 +1173,9 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
>  		case AIR:
>  			/* nothing */
>  			break;
> +		case FREEDIVING:
> +			/* nothing */
> +			break;
>  		}
>  	}
>  	if (entry->stopdepth) {
> -- 
> 2.3.8 (Apple Git-58)
> 

> _______________________________________________
> subsurface mailing list
> subsurface at subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface



More information about the subsurface mailing list