search for: warn_unused_result

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

2012 Apr 25
1
trouble installing SparseM
...f different size iohb.c:348: warning: cast from pointer to integer of different size iohb.c:349: warning: cast from pointer to integer of different size iohb.c:362: warning: cast from pointer to integer of different size iohb.c:305: warning: ignoring return value of ?fgets?, declared with attribute warn_unused_result iohb.c:313: warning: ignoring return value of ?fgets?, declared with attribute warn_unused_result iohb.c:323: warning: ignoring return value of ?fgets?, declared with attribute warn_unused_result iohb.c:336: warning: ignoring return value of ?fgets?, declared with attribute warn_unused_result iohb....
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...
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 attribute warn_unused_result sch...
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': /usr/src/zaptel/zaptel.c:2744: warning: ignorin...
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
...make[1]: Entering directory `/home/sbn/src/linux-2.6.10' 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/zaptel.c: In function `zt_common_ioctl': /home/sbn/src/...
2004 Jun 23
2
problems compiling zaptel X100P on Redhat Fedora 2.6.5-1.358
...9.1/zaptel.c:82: /asterisk/zaptel-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': /asterisk/zaptel-0.9.1/zaptel.c:1703: warnin...
2011 May 30
7
libxl build errors in xen-unstable
...ges/BUILD/xen-unstable.hg-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
...c:82: /asterisk_source/zaptel/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 reported only once /asterisk_source/z...
2010 May 15
1
Unable to build tools/libxl for weeks
..../../tools/libxc -I../../tools/include -I../../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...
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...
2009 Feb 09
0
[LLVMdev] 2.5 Pre-release1 available for testing
...b for Chris). 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...
2013 Mar 04
2
flac 1.3.0pre1 prelease
Martijn van Beurden wrote: > > 'chown', declared with attribute warn_unused_result [-Wunused-result] > > metadata_iterators.c:3299:2: warning: ignoring return value of > > 'chown', declared with attribute warn_unused_result [-Wunused-result] > > In file included from /usr/include/stdio.h:934:0, Thats an Ubuntu special. They have patched their libc head...
2011 Feb 26
1
make world error
...m build make -C ioemu-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 100644 --- a/libinstal...
2010 May 24
1
mISDN compiling error
...clared identifier is reported only once /usr/src/mISDN-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: warning: ignoring return value of ?device_create_file?, decla...
2013 Feb 06
0
Printer issues with Samba 4.0.3 and compile time warnings
...[647]: _spoolss_OpenPrinterEx: Cannot open a printer handle for printer \\server-name I have this on a new build Arch linux system, and get some warnings at build time, for example: ./source4/heimdal/lib/com_err/parse.c:537:16: warning: ignoring return value of ?asprintf?, declared with attribute warn_unused_result [-Wunused-result] ../source4/heimdal/lib/com_err/parse.c:561:13: warning: ignoring return value of ?asprintf?, declared with attribute warn_unused_result [-Wunused-result] /home/benedict/abs/local/samba4-2/src/samba-4.0.3/librpc/idl/ntprinting.idl:153: warning: helper() is pidl-specific and depreca...
2008 Apr 30
0
[Fwd: Re: openSUSE 11.0 - NUT]
...ror 1 mv -f .deps/upslog.Tpo .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', declared...