str: Mark definition of ss_empty() "static inline".
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 10 Nov 2011 05:02:06 +0000 (21:02 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 10 Nov 2011 05:30:26 +0000 (21:30 -0800)
This suppresses a Clang warning.  The prototype earlier in the file
was already marked "static inline", so I don't think that this is a
functional change.

Reported-by: Jeremy Lavergne <jeremy@lavergne.gotdns.org>
src/libpspp/str.h

index 7c3ef3d5f9ed5ffd89ff4c339e49e66fa9464073..c8ab726797f8fbf82bdea0e336059d1ab1eec895 100644 (file)
@@ -243,7 +243,7 @@ void u8_buf_copy_rpad (uint8_t *dst, size_t dst_size,
                       const uint8_t *src, size_t src_size,
                       char pad);
 \f
-struct substring
+static inline struct substring
 ss_empty (void)
 {
   struct substring ss;