[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-users] ortp: fix some gcc warnings
From: |
Simon Morlat |
Subject: |
Re: [Linphone-users] ortp: fix some gcc warnings |
Date: |
Tue, 29 Aug 2006 21:09:39 +0200 |
User-agent: |
KMail/1.9.3 |
Hi,
Thanks, it is now applied to cvs.
Simon
Le mardi 29 août 2006 11:58, Andre Noll a écrit :
> Hi
>
> This trivial patch makes gcc STFU wrt function declarations which are
> not a prototype. This allows applications that include ortp headers to
> be compiled with -Wstrict-prototypes without warnings.
>
> Andre
>
>
> --- ortp-0.10.1/include/ortp/ortp.h~ 2006-08-29 11:35:13.522783769 +0200
> +++ ortp-0.10.1/include/ortp/ortp.h 2006-08-29 11:35:52.516001648 +0200
> @@ -30,9 +30,9 @@ extern "C"
> #endif
>
> bool_t ortp_min_version_required(int major, int minor, int micro);
> -void ortp_init();
> -void ortp_scheduler_init();
> -void ortp_exit();
> +void ortp_init(void);
> +void ortp_scheduler_init(void);
> +void ortp_exit(void);
>
> /***************/
> /* logging api */
> @@ -145,10 +145,10 @@ static inline void ortp_fatal(const char
>
> extern rtp_stats_t ortp_global_stats;
>
> -void ortp_global_stats_reset();
> -rtp_stats_t *ortp_get_global_stats();
> +void ortp_global_stats_reset(void);
> +rtp_stats_t *ortp_get_global_stats(void);
>
> -void ortp_global_stats_display();
> +void ortp_global_stats_display(void);
> void rtp_stats_display(rtp_stats_t *stats, const char *header);
> void rtp_stats_reset(rtp_stats_t *stats);
>
> --- ortp-0.10.1/include/ortp/sessionset.h~ 2006-08-29 11:42:58.230697825
> +0200 +++ ortp-0.10.1/include/ortp/sessionset.h 2006-08-29
> 11:43:10.311603814 +0200 @@ -89,7 +89,7 @@ struct _SessionSet
>
> typedef struct _SessionSet SessionSet;
>
> -SessionSet * session_set_new();
> +SessionSet * session_set_new(void);
> #define session_set_init(ss) ORTP_FD_ZERO(&(ss)->rtpset)
> #define
> session_set_set(ss,rtpsession)
> ORTP_FD_SET((rtpsession)->mask_pos,&(ss)->r
>tpset) #define
> session_set_is_set(ss,rtpsession)
> ORTP_FD_ISSET((rtpsession)->mask_pos,&(ss
>)->rtpset)