search for: warn_unused_result

Displaying 20 results from an estimated 90 matches for "warn_unused_result".

2016 Sep 04
6
Adding [[nodiscard]] to Compiler.h
My 2 cents: get rid of LLVM_UNUSED_RESULT, and move to LLVM_NODISCARD. For compilers that support it, it should be a strict superset of features and functionality. The standard feature was written directly based on the clang warn_unused_result stuff. I would just migrate us onto the spelling and usage pattern that got standardized. All we have to lose are warnings from compilers other than Clang until they implement this feature. That seems like not a huge loss to me honestly. -Chandler On Sun, Sep 4, 2016 at 2:57 PM Sanjoy Das via ll...
2005 Jul 22
1
Re: zaptel make problems
On a different note using Fedora Core 3 I get CC [M] /usr/src/zaptel/zaptel.o /usr/src/zaptel/zaptel.c: In function `zt_chan_write': /usr/src/zaptel/zaptel.c:1745: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result /usr/src/zaptel/zaptel.c: In function `ioctl_load_zone': /usr/src/zaptel/zaptel.c:2392: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result /usr/src/zaptel/zaptel.c: In function `zt_common_ioctl':...
2013 Feb 06
0
Miscellaneous compiler warnings
Hi, On RHEL 6.3 with gcc 4.4.6, a number of compiler warnings are emitted when building recent snapshots: These all seem to be harmless, but annoying. readpassphrase.c:127: warning: ignoring return value of ?write?, declared with attribute warn_unused_result readpassphrase.c:146: warning: ignoring return value of ?write?, declared with attribute warn_unused_result make[1]: Leaving directory `/u/wk/imorgan/src/openssh/warnings/openssh/openbsd-compat' log.c:432: warning: ignoring return value of ?write?, declared with...
2016 Sep 02
2
Adding [[nodiscard]] to Compiler.h
...C++17 mode we can just declare the >> class like so: >> >> class [[nodiscard]] Error { ... }; >> >> So, I'd like to add an LLVM_NODISCARD macro to Compiler.h, and this is >> where it gets interesting. Pre-C++17, clang already allows >> __attribute__((warn_unused_result)) and [[clang::warn_unused_result]] to >> be used on a class this way, with equivalent affects, so it'd be nice to >> use that if we aren't building in C++17 mode. >> >> We already have a LLVM_UNUSED_RESULT defined to this, but AFAICT gcc >> only allows it on f...
2005 Jan 21
0
Problem compiling zaptel-1.0.3
...; CC [M] /home/sbn/src/zaptel-1.0.3/zaptel.o /home/sbn/src/zaptel-1.0.3/zaptel.c: In function `zt_chan_write': /home/sbn/src/zaptel-1.0.3/zaptel.c:1720: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result /home/sbn/src/zaptel-1.0.3/zaptel.c: In function `ioctl_load_zone': /home/sbn/src/zaptel-1.0.3/zaptel.c:2356: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result /home/sbn/src/zaptel-1.0.3/...
2004 Jun 23
2
problems compiling zaptel X100P on Redhat Fedora 2.6.5-1.358
...aptel-0.9.1/zaptel.h:1407:41: missing binary operator before token "(" /asterisk/zaptel-0.9.1/zaptel.c: In function `zt_chan_write': /asterisk/zaptel-0.9.1/zaptel.c:1665: warning: ignoring return value of `direct_copy_from_user', declared with attribute warn_unused_result /asterisk/zaptel-0.9.1/zaptel.c: In function `zt_ctl_open': /asterisk/zaptel-0.9.1/zaptel.c:1694: warning: `MOD_INC_USE_COUNT' is deprecated (declared at include/linux/module.h:501) /asterisk/zaptel-0.9.1/zaptel.c: In function `zt_chan_open':...
2011 May 30
7
libxl build errors in xen-unstable
...g-4.2.23437/tools/libxl/../../tools/include -c -o libxl_exec.o libxl_exec.c cc1: warnings being treated as errors libxl_exec.c: In function ''check_open_fds'': libxl_exec.c:48: error: ignoring return value of ''atoi'', declared with attribute warn_unused_result gcc -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing...
2016 Sep 02
2
Adding [[nodiscard]] to Compiler.h
...[[nodiscard]] attribute is for - with new enough compilers in C++17 mode we can just declare the class like so: class [[nodiscard]] Error { ... }; So, I'd like to add an LLVM_NODISCARD macro to Compiler.h, and this is where it gets interesting. Pre-C++17, clang already allows __attribute__((warn_unused_result)) and [[clang::warn_unused_result]] to be used on a class this way, with equivalent affects, so it'd be nice to use that if we aren't building in C++17 mode. We already have a LLVM_UNUSED_RESULT defined to this, but AFAICT gcc only allows it on function declarations, and the MSVC equivalen...
2005 Mar 08
5
Please help with install *
I'm a neewbie in Linux, so please bear with me. I have a school assignment to make communication between 10 SIP softphones (kphone). So far I got trouble installing Asterisk. The information in asterisk web site seems to be a bit outdated because it's mentioned only kernel 2.4. Since Mandrake cooker (10.2beta3) witch I'm using is using kernel 2.6.10, I wander if I have a chance to
2005 Jul 11
4
Zaptel won't compile under Fedora Core 4
...l/zaptel.h:47:41: error: missing binary operator before token "(" /asterisk_source/zaptel/zaptel.c: In function 'zt_chan_write': /asterisk_source/zaptel/zaptel.c:1737: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result /asterisk_source/zaptel/zaptel.c: In function 'zt_ctl_open': /asterisk_source/zaptel/zaptel.c:1766: error: 'MOD_INC_USE_COUNT' undeclared (first use in this function) /asterisk_source/zaptel/zaptel.c:1766: error: (Each undeclared identifier is r...
2012 May 11
15
Errors of doing "make install-tools" with xen-4.2-unstable?
Hi, When I do the "make install-tools" with xen-4.2-unstable, there are some errors about "warn_unused_result". Is it the error in code or the error in the compiling environment? Thank you so much. gcc -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .tapdisk-queue.o.d -D_LARGEFILE_SOURCE -D_LARGE...
2010 May 15
1
Unable to build tools/libxl for weeks
...../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -c xl_cmdimpl.c cc1: warnings being treated as errors xl_cmdimpl.c: In Funktion »main_top«: xl_cmdimpl.c:3185: Fehler: Der Rückgabewert von »system«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert xl_cmdimpl.c: In Funktion »uptime_to_string«: xl_cmdimpl.c:3529: Fehler: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert xl_cmdimpl.c:3531: Fehler: Der Rückgabewert von »asprintf«, der mit dem Attribut warn...
2009 Feb 09
0
[LLVMdev] 2.5 Pre-release1 available for testing
...ris). llvm[1]: Compiling Path.cpp for Release build In file included from Path.cpp:270: Unix/Path.inc: In member function ‘bool llvm::sys::Path::eraseFromDisk(bool, std::string*) const’: Unix/Path.inc:661: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result llvm[1]: Compiling raw_ostream.cpp for Release build raw_ostream.cpp: In member function ‘virtual void llvm::raw_fd_ostream::flush_impl()’: raw_ostream.cpp:245: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result llvm[2]: Compi...
2011 Feb 26
1
make world error
...u-dir install === PCI passthrough capability has been enabled === make[4]: Entering directory `/usr/src/xen-4.0.1/tools/ioemu-qemu-xen'' CC qemu-nbd.o qemu-nbd.c: In function ‘main’: qemu-nbd.c:349: warning: ignoring return value of ‘daemon’, declared with attribute warn_unused_result CC qemu-tool.o CC osdep.o CC cutils.o CC qemu-malloc.o CC block-cow.o block-cow.c: In function ‘cow_create’: block-cow.c:242: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block-cow.c:244: warning: ignoring return value of ‘ftruncate’...
2010 Jun 19
1
[PATCH 1/2] linux/syslinux.c: Silence warnings
From: Gene Cumm <gene.cumm at gmail.com> linux/syslinux.c: Silence warnings from GCC with asprintf's attribute warn_unused_result in certain glibc versions/patches. Assign it to a variable and ignore it as the string is already tested for null before using it. Signed-off-by: Gene Cumm <gene.cumm at gmail.com> --- diff --git a/libinstaller/setadv.c b/libinstaller/setadv.c index c891b87..e9847e7 10...
2010 May 24
1
mISDN compiling error
...DN-1_1_9_2/drivers/isdn/hardware/mISDN/sysfs_obj.c:139: error: for each function it appears in.) /usr/src/mISDN-1_1_9_2/drivers/isdn/hardware/mISDN/sysfs_obj.c:149: warning: ignoring return value of ?device_create_file?, declared with attribute warn_unused_result /usr/src/mISDN-1_1_9_2/drivers/isdn/hardware/mISDN/sysfs_obj.c:150: warning: ignoring return value of ?device_create_file?, declared with attribute warn_unused_result /usr/src/mISDN-1_1_9_2/drivers/isdn/hardware/mISDN/sysfs_obj.c:151...
2008 Apr 30
0
[Fwd: Re: openSUSE 11.0 - NUT]
....deps/upslog.Po mv -f .deps/cgilib.Tpo .deps/cgilib.Po mv -f .deps/upssched.Tpo .deps/upssched.Po mv -f .deps/upsimage.Tpo .deps/upsimage.Po upsrw.c: In function 'do_setvar': upsrw.c:114: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result upsrw.c:146: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result mv -f .deps/upsrw.Tpo .deps/upsrw.Po mv -f .deps/upsstats.Tpo .deps/upsstats.Po upscmd.c: In function 'main': upscmd.c:277: warning: ignoring return value of 'fgets...
2008 Jul 21
1
1.3.10 compile failure on FC9 w/ Gluster-patched Fuse
...rotocol.Tpo" ".deps/server-protocol.Po"; else rm -f ".deps/server-protocol.Tpo"; exit 1; fi server-protocol.c: In function ''stat_to_str'': server-protocol.c:120: warning: ignoring return value of ''asprintf'', declared with attribute warn_unused_result server-protocol.c: In function ''mop_setvolume'': server-protocol.c:5625: warning: ignoring return value of ''asprintf'', declared with attribute warn_unused_result server-protocol.c:5648: warning: ignoring return value of ''asprintf'', declared with...
2013 Feb 24
7
Help: rJava ubuntu 12.04
.../usr/lib/jvm/java-7-openjdk-amd64/jre/../include -fpic -I/usr/lib/jvm/java-7-openjdk-amd64/jre/../include rjava.c: En la función ‘RJava_init_ctrl’: rjava.c:51:8: aviso: se descarta el valor de devolución de ‘write’, se declaró con el atributo warn_unused_result [-Wunused-result] rjava.c:52:7: aviso: se descarta el valor de devolución de ‘read’, se declaró con el atributo warn_unused_result [-Wunused-result] rjava.c: En la función ‘RJava_request_callback’: rjava.c:39:8: aviso: se descarta el valor de devolución de ‘write’, se declaró con el atributo warn_u...
2018 Jan 22
2
[PATCH] lua, perl: Use thread-safe strerror_r instead of strerror (RHBZ#1536763).
--- generator/lua.ml | 22 +++++++++++++++------- generator/perl.ml | 2 +- lua/Makefile.am | 1 + 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/generator/lua.ml b/generator/lua.ml index dd6aedbe9..7cfceb152 100644 --- a/generator/lua.ml +++ b/generator/lua.ml @@ -63,6 +63,8 @@ let generate_lua_c () = #endif #endif +#include