summaryrefslogtreecommitdiff
path: root/util/kconfig
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2020-07-28 11:54:18 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-17 20:14:48 +0000
commit84c97f043260e0b06b585ae2a46cc4e9977e0ccd (patch)
treef0dc2821c9df89780f98b6ab0b98b236056eda06 /util/kconfig
parentaca8db3d63a3521784d5b6ca38f285bc7680404d (diff)
downloadchrome-ec-84c97f043260e0b06b585ae2a46cc4e9977e0ccd.tar.gz
Replace __attribute__((noreturn)) with noreturn
_Noreturn was added in C11 and the convenience macro "noreturn" is specified by stdnoreturn.h: https://en.cppreference.com/w/c/language/_Noreturn. BRANCH=none BUG=none TEST=make buildall -j Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I30361bb5290cea1c776a7356f7e3a68edf1f8e39 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2324816 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'util/kconfig')
-rw-r--r--util/kconfig/preprocess.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/kconfig/preprocess.c b/util/kconfig/preprocess.c
index 0243086fb1..67b9731a0a 100644
--- a/util/kconfig/preprocess.c
+++ b/util/kconfig/preprocess.c
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <stdnoreturn.h>
#include "list.h"
#include "lkc.h"
@@ -17,7 +18,7 @@
static char *expand_string_with_args(const char *in, int argc, char *argv[]);
static char *expand_string(const char *in);
-static void __attribute__((noreturn)) pperror(const char *format, ...)
+static noreturn void pperror(const char *format, ...)
{
va_list ap;