Procházet zdrojové kódy

rpmatch: fix previous commit w/C++ compilers

The throw markings on the inline func trigger errors when building with
C++.  Since this inline version doesn't throw any exceptions, just drop
the markings completely and be done with it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger před 14 roky
rodič
revize
61fec9e2b3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      include/stdlib.h

+ 1 - 1
include/stdlib.h

@@ -833,7 +833,7 @@ __END_NAMESPACE_STD
    or negative response expression as specified by the LC_MESSAGES category
    or negative response expression as specified by the LC_MESSAGES category
    in the program's current locale.  Returns 1 if affirmative, 0 if
    in the program's current locale.  Returns 1 if affirmative, 0 if
    negative, and -1 if not matching.  */
    negative, and -1 if not matching.  */
-__THROW __nonnull ((1)) __wur
+__nonnull ((1)) __wur
 static inline int rpmatch (__const char *__response)
 static inline int rpmatch (__const char *__response)
 {
 {
 	return (__response[0] == 'y' || __response[0] == 'Y') ? 1 :
 	return (__response[0] == 'y' || __response[0] == 'Y') ? 1 :