Add missing function attributes to the pipe/endpoint functions for all architectures.
[pub/lufa.git] / LUFA / Drivers / USB / Core / AVR8 / Pipe_AVR8.h
index 2e89f6d..8022a81 100644 (file)
                         *
                         *  \return The current pipe token, as a \c PIPE_TOKEN_* mask.
                         */
-                       static inline uint8_t Pipe_GetPipeToken(void) ATTR_ALWAYS_INLINE;
+                       static inline uint8_t Pipe_GetPipeToken(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
                        static inline uint8_t Pipe_GetPipeToken(void)
                        {
                                return (UPCFG0X & (0x03 << PTOKEN0));
                         *
                         *  \return Total number of busy banks in the selected pipe.
                         */
+                       static inline uint8_t Pipe_GetBusyBanks(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
                        static inline uint8_t Pipe_GetBusyBanks(void)
                        {
                                return (UPSTAX & (0x03 << NBUSYBK0));