feat use discard
Some checks failed
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 1m20s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 1m39s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 3m39s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 5m36s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 5m51s
linux-arm-gcc / linux-gcc-armhf (push) Has been cancelled

This commit is contained in:
tqcq 2024-04-11 23:25:46 +08:00
parent b0cd2d363b
commit e8ccb6aebd
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,9 @@
#define SLED_LANG_ATTRIBUTES_H #define SLED_LANG_ATTRIBUTES_H
#pragma once #pragma once
#define SLED_DEPRECATED __attribute__((deprecated)) // #define SLED_DEPRECATED __attribute__((deprecated))
#define SLED_NODISCARD [[nodiscard]]
#define SLED_DEPRECATED [[deprecated]]
#if defined(__clang__) && (!defined(SWIG)) #if defined(__clang__) && (!defined(SWIG))
#define SLED_THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) #define SLED_THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x))

View File

@ -8,6 +8,7 @@
#ifndef SLED_STRINGS_BASE64_H #ifndef SLED_STRINGS_BASE64_H
#define SLED_STRINGS_BASE64_H #define SLED_STRINGS_BASE64_H
#include "sled/nonstd/string_view.h"
#include "sled/status_or.h" #include "sled/status_or.h"
#include <string.h> #include <string.h>
#include <string> #include <string>