summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-07 15:52:36 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-07 15:52:36 +0300
commit475ba2111f5c3e0eb755a954785e09d3a35dfabf (patch)
tree0c9d99c9718a89cf2929a11c596d1e58fb6caed2
parent59f791f591059ba44dcbbfe50fa20390e8565781 (diff)
downloadrpm-475ba2111f5c3e0eb755a954785e09d3a35dfabf.tar.gz
rpm-475ba2111f5c3e0eb755a954785e09d3a35dfabf.tar.bz2
rpm-475ba2111f5c3e0eb755a954785e09d3a35dfabf.zip
Add noreturn annotations to argerror() helper functions
-rw-r--r--lib/poptI.c1
-rw-r--r--rpmqv.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/poptI.c b/lib/poptI.c
index f460f96b1..5021f17f9 100644
--- a/lib/poptI.c
+++ b/lib/poptI.c
@@ -25,6 +25,7 @@ struct rpmInstallArguments_s rpmIArgs = {
#define POPT_RELOCATE -1021
#define POPT_EXCLUDEPATH -1022
+RPM_GNUC_NORETURN
static void argerror(const char * desc)
{
fprintf(stderr, _("%s: %s\n"), __progname, desc);
diff --git a/rpmqv.c b/rpmqv.c
index e226f42d6..38401526c 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -127,6 +127,7 @@ static struct poptOption optionsTable[] = {
long _stksize = 64 * 1024L;
#endif
+RPM_GNUC_NORETURN
static void argerror(const char * desc)
{
fprintf(stderr, _("%s: %s\n"), __progname, desc);