[Sumover-dev] [svn commit] r4329 - vic/branches/cc/rtp

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Thu Nov 20 20:14:02 GMT 2008


Author: soohyunc
Date: Thu Nov 20 20:14:00 2008
New Revision: 4329

Modified:
   vic/branches/cc/rtp/source.h

Log:
(fixed a warning message when compiling with gcc-4.3.2)
warning: type qualifiers ignored on function return type

o  the return variables are declared in a plain integer, so it is not necessary to
   put 'const' keyword as the type qualifiers in these functions.

This warning message will not come out with an old GCC (e.g., gcc 3.4.6 on
FreeBSD 6.4-RELEASE will not generate this warning message.)


Modified: vic/branches/cc/rtp/source.h
==============================================================================
--- vic/branches/cc/rtp/source.h	(original)
+++ vic/branches/cc/rtp/source.h	Thu Nov 20 20:14:00 2008
@@ -103,8 +103,8 @@
         ~PacketData();
         inline const struct rtphdr *rtp_hdr() const { return (rh_); }
         inline const u_char *video_data() const { return (vh_); }
-        inline const int data_length() const { return (len_); }
-        inline const u_int playout() const { return (playout_); }
+        inline int data_length() const { return (len_); }
+        inline u_int playout() const { return (playout_); }
  private:
         u_char          *pkt_;
         struct rtphdr   *rh_;



More information about the Sumover-dev mailing list