@@ -667,11 +667,11 @@ * * @param size The size of the memory to allocate * @return A pointer to the allocated memory. May return NULL if the specified * size is 0. */ -- (nullable void *)allocMemoryWithSize: (size_t)size; +- (nullable void *)allocMemoryWithSize: (size_t)size OF_WARN_UNUSED_RESULT; /*! * @brief Allocates memory for the specified number of items and stores it in * the object's memory pool. * @@ -681,11 +681,11 @@ * @param count The number of items to allocate * @return A pointer to the allocated memory. May return NULL if the specified * size or count is 0. */ - (nullable void *)allocMemoryWithSize: (size_t)size - count: (size_t)count; + count: (size_t)count OF_WARN_UNUSED_RESULT; /*! * @brief Resizes memory in the object's memory pool to the specified size. * * If the pointer is NULL, this is equivalent to allocating memory. @@ -694,11 +694,11 @@ * @param pointer A pointer to the already allocated memory * @param size The new size for the memory chunk * @return A pointer to the resized memory chunk */ - (nullable void *)resizeMemory: (nullable void *)pointer - size: (size_t)size; + size: (size_t)size OF_WARN_UNUSED_RESULT; /*! * @brief Resizes memory in the object's memory pool to the specific number of * items of the specified size. * @@ -710,11 +710,11 @@ * @param count The number of items to resize to * @return A pointer to the resized memory chunk */ - (nullable void *)resizeMemory: (nullable void *)pointer size: (size_t)size - count: (size_t)count; + count: (size_t)count OF_WARN_UNUSED_RESULT; /*! * @brief Frees allocated memory and removes it from the object's memory pool. * * Does nothing if the pointer is NULL.