search for: __unused__

Displaying 20 results from an estimated 27 matches for "__unused__".

Did you mean: __unused
2004 Aug 31
1
[LLVMdev] More configure problems
.... | >`----------------------------------------------------*/ >yyerrlab1: > > /* Suppress GCC warning that yyerrlab1 is unused when no action > invokes YYERROR. */ >#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) > __attribute__ ((__unused__)) >#endif > > goto yyerrlab2; <== line 2043 > >I'm using bison 1.875. But it worked the last time, so I don't know why >it doesn't work now. Deleting the __attribute__ clause fixes it. > Or correctly terminate the statement/line with ; (although it becom...
2016 Mar 14
2
LLVM-3.8.0 libcxx in-tree build fails with cmath error ::signbit has not been declared
...-E cmake_progress_report llvm-3.8.0.src_bld_x86_64-rhel6.4-linux-gnu/CMakeFiles In file included from llvm-3.8.0.src/projects/libcxx/include/__hash_table:14:0, from llvm-3.8.0.src/projects/libcxx/src/hash.cpp:10: llvm-3.8.0.src/projects/libcxx/include/__config:448:50: warning: '__unused__' attribute ignored [-Wattributes] #define _LIBCPP_UNUSED __attribute__((__unused__)) ^ Thank you. -H From: Eric Fiselier [mailto:eric at efcs.ca] Sent: Monday, March 14, 2016 8:55 PM To: Oza, Hiral <Hiral.Oza at netapp.com> Cc: cfe-dev at...
2005 Jun 09
0
[Bug 2780] New: fix acl patch
...1 +++ rsync.h 2005-05-12 23:32:56 -@@ -638,6 +638,44 @@ struct stats { +@@ -638,6 +638,46 @@ #include "lib/permstring.h" #include "lib/addrinfo.h" @@ -4777,9 +4777,18 @@ +#endif /* SUPPORT_ACLS */ +#include "smb_acls.h" + ++#define UNUSED(x) x __attribute__((__unused__)) ++ #include "proto.h" /* We have replacement versions of these if they're missing. */ +@@ -861,6 +901,4 @@ + const char *get_panic_action(void); + #endif + +-#define UNUSED(x) x __attribute__((__unused__)) +- + extern const char *io_write_phase, *io_read_phase; --- orig/rsy...
2015 Mar 03
2
openssh-SNAP-20150304 issues
Damien Miller wrote: > > On Tue, 3 Mar 2015, The Doctor wrote: > >> regress/unittests/test_helper/test_helper.c: In function `test_data_file': >> regress/unittests/test_helper/test_helper.c:177: warning: implicit declaration of function `strlcpy' >> regress/unittests/test_helper/test_helper.c: At top level: >>
2004 Aug 31
2
[LLVMdev] More configure problems
...raised explicitly by an action. | `----------------------------------------------------*/ yyerrlab1: /* Suppress GCC warning that yyerrlab1 is unused when no action invokes YYERROR. */ #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) __attribute__ ((__unused__)) #endif goto yyerrlab2; <== line 2043 I'm using bison 1.875. But it worked the last time, so I don't know why it doesn't work now. Deleting the __attribute__ clause fixes it.
2010 Dec 14
3
[LLVMdev] __used__ attributes in llvm-gcc's crtstuff.c
...LLVM does not support that option, I presume __used__ attribute is used instead. For example, __CTOR_LIST__[1] definition is changed as follows: STATIC func_ptr __CTOR_LIST__[1] /* LLVM LOCAL begin */ #ifdef __llvm__ __attribute__ ((__used__, aligned(sizeof(func_ptr)))) #else __attribute__ ((__unused__, aligned(sizeof(func_ptr)))) #endif /* LLVM LOCAL end */ = { (func_ptr) (-1) }; Note that __unused__ just suppresses the warning that __CTOR_LIST__ is not used. My question is that why some global static variables, such as __frame_dummy_init_array_entry and __do_global_dtors_aux_fini_array_entr...
2016 Mar 14
2
LLVM-3.8.0 libcxx in-tree build fails with cmath error ::signbit has not been declared
Greetings! I have been building llvm-3.6.x, 3.7.1 and 3.7.2 with (glibc-2.12.1, binutils-2.24, gcc-4.9.2) almost same set if CMake flags. However while building LLVM-3.8.0 using same CMake flags I am observing projects/libcxx/include/cmath errors... ...'::signbit' has not been declared ...'::fpclassify' has not been declared ...'::isfinite' has not been declared ...
2009 Aug 10
2
daemon/ warnings
...xtern void reply (xdrproc_t xdrp, char *ret); } \ while (0) +#ifndef __attribute__ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) +# define __attribute__(x) /* empty */ +# endif +#endif + +#ifndef ATTRIBUTE_UNUSED +# define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) +#endif + #endif /* GUESTFSD_DAEMON_H */ -- 1.6.4.174.gc193a >From af4e98c3371f6008188fb3ef7136c1ebda008933 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering at redhat.com> Date: Thu, 6 Aug 2009 15:26:13 +0200 Subject: [PATCH 2/4] build: avoid warnings in daemon/debug.c * daemon/...
2023 Feb 15
1
[libnbd PATCH v3 05/29] vector: (mostly) factor out DEFINE_VECTOR_EMPTY
...uivalent. > + */ > +#define DEFINE_VECTOR_EMPTY(name) \ > + /* Call free() on each element of the vector, then reset the vector. \ > + */ \ > + static inline void __attribute__ ((__unused__)) \ > + name##_empty (name *v) \ > + { \ > + size_t i; \ > + for (i = 0; i < v->le...
2004 Jan 06
3
[Bug 783] __unused nit
...us: NEW Severity: normal Priority: P2 Component: PAM support AssignedTo: openssh-bugs at mindrot.org ReportedBy: des at freebsd.org auth-pam.c was originally taken from FreeBSD, which has an __unused macro which corresponds to GCC's __attribute__((__unused__)). A blank definition of that macro was added to auth-pam.c to support platforms where it is not defined. This definition should be conditional on the non-existence of the macro, rather than unconditional. As it stands, it causes a warning on platforms which do have an __unused macro. ---...
2004 Apr 28
1
Bug in rsync 2.6.1
It fails to compile on Irix (compiler 7.2.1). Whereas rsync.h has a #define for __attribute__(x) to remove it for non GNUC and APPLE, this isn't used when compiling popt/popt.c, so it produces an error as it doesn't like __attribute__((__unused__)) showing up in the parameter list for poptAddAlias. popthelp.c also uses UNUSED. A workaround was to copy the #define setting of __attribute__ from the ../rsync.h file into poptint.h
2006 Nov 21
1
rsync v2.6.9: small patch fixing NORETURN failures
...me, time_t modtime, mode_t mode); int mkdir_defmode(char *fname); int create_directory_path(char *fname); --- rsync-2.6.9/rsync.h.orig 2006-10-24 05:31:30.000000000 +0200 +++ rsync-2.6.9/rsync.h 2006-11-21 21:32:09.000000000 +0100 @@ -667,7 +667,16 @@ #endif #define UNUSED(x) x __attribute__((__unused__)) +#if __GNUC__ > 2 #define NORETURN __attribute__((__noreturn__)) +#define NORETURN2 /**/ +#elif __GNUC__ == 2 /* (ThMO) */ +#define NORETURN /**/ +#define NORETURN2 __attribute__((__noreturn__)) +#else +#define NORETURN /**/ +#define NORETURN2 /**/ +#endif #include "proto.h"
2006 Feb 27
0
method dispatch and in-place modification? - unclass, RemoveClass, getDataPart, method dispatch
...> NOT a primitive assignment operator , because there is no code in R > that changes type in place. See the definition of "class<-" in > the methods package for the use of this code. */ I came upon "RemoveClass()" in R/src/main/object.c which says it is __unused__ but seems to do what I would like it to do. So I tried a S4 method dispatch mechanism, but it is 3 times *slower* than unclass, and it seems to be due to the switch() statement inside getDataPart() (in R/src/library/methods/R/RClassUtils.R) which typically copies the object three times? (I think...
2004 Aug 31
0
[LLVMdev] More configure problems
...> `----------------------------------------------------*/ > yyerrlab1: > > /* Suppress GCC warning that yyerrlab1 is unused when no action > invokes YYERROR. */ > #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) > __attribute__ ((__unused__)) > #endif > > goto yyerrlab2; <== line 2043 > > I'm using bison 1.875. But it worked the last time, so I don't know why > it doesn't work now. Deleting the __attribute__ clause fixes it. This has come up before. Its a bison bug. You'll need to try an...
2004 Aug 31
0
[LLVMdev] More configure problems
On Mon, 30 Aug 2004 20:48:45 -0700 Jeff Cohen <jeffc at jolt-lang.org> wrote: > When I ran configure after updating, I get various errors. First: > > % ../configure --enable-jit --with-llvmgccdir=/home/llvm/cfrontend/x86/llvm-gcc > checking for a BSD-compatible install... /usr/bin/install -c > checking build system type... i386-unknown-freebsd5.2.1 > checking host system
2023 Mar 01
6
[libnbd PATCH 0/6] common: catch up with nbdkit
If we compare the "common" subdirectory between nbdkit @ 6b4178d0fdfe ("ci: Temporarily disable perl in MacOS", 2023-02-27) and libnbd @ d05cd8f384a7 ("Version 1.15.11.", 2023-02-28), we find differences. We can categorize these differences along two (orthogonal) axes: - Intentional or unintentional. Intentional differences are for example when one of the libnbd
2007 Sep 17
2
No subject
Hi, when trying to install openssh I get the following errors. Any idea of why? This is on a mac 10.4.10 system, and with the 4.7p1 version. Appreciate any tips. Thanks, Anil if test ! -z ""; then \ /usr/bin/perl ./fixprogs ssh_prng_cmds ; \ fi (cd openbsd-compat && make) make[1]: Nothing to be done for `all'. gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized
2002 Nov 17
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS (update)
...gned flags; time_t modtime; @@ -614,7 +618,7 @@ inet_ntop(int af, const void *src, char #endif /* !HAVE_INET_NTOP */ #ifndef HAVE_INET_PTON -int isc_net_pton(int af, const char *src, void *dst); +int inet_pton(int af, const char *src, void *dst); #endif #define UNUSED(x) x __attribute__((__unused__)) ### END OF PATCHES ### Thanks PG -- Paul Green | Mail: Paul.Green@stratus.com Senior Technical Consultant | Voice: +1 978-461-7557 FAX: +1 978-461-3610 Stratus Technologies | Video: PictureTel/AT&T by request. Maynard, MA 01754 | Disclaimer: I speak for m...
2002 Sep 06
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS
...gned flags; time_t modtime; @@ -614,7 +618,7 @@ inet_ntop(int af, const void *src, char #endif /* !HAVE_INET_NTOP */ #ifndef HAVE_INET_PTON -int isc_net_pton(int af, const char *src, void *dst); +int inet_pton(int af, const char *src, void *dst); #endif #define UNUSED(x) x __attribute__((__unused__)) ### END OF PATCHES ### Thanks PG -- Paul Green | Mail: Paul.Green@stratus.com Senior Technical Consultant | Voice: +1 978-461-7557 FAX: +1 978-461-3610 Stratus Technologies | Video: PictureTel/AT&T by request. Maynard, MA 01754 | Disclaimer: I speak for m...
2004 Aug 31
4
[LLVMdev] More configure problems
When I ran configure after updating, I get various errors. First: % ../configure --enable-jit --with-llvmgccdir=/home/llvm/cfrontend/x86/llvm-gcc checking for a BSD-compatible install... /usr/bin/install -c checking build system type... i386-unknown-freebsd5.2.1 checking host system type... i386-unknown-freebsd5.2.1 checking target system type... i386-unknown-freebsd5.2.1 test: Unknown: bad