similar to: Adding [[nodiscard]] to Compiler.h

Displaying 20 results from an estimated 1000 matches similar to: "Adding [[nodiscard]] to Compiler.h"

2016 Sep 02
2
Adding [[nodiscard]] to Compiler.h
Sanjoy Das <sanjoy at playingwithpointers.com> writes: > Hi Justin, > > This SGTM generally, but please make the difference between > LLVM_NODISCARD and LLVM_UNUSED_RESULT clear in the code. :) Right, this is where it gets a little weird. LLVM_NODISCARD would be for types, whereas LLVM_UNUSED_RESULT would be for functions. Depending on your host compiler, using the wrong one
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
2012 Apr 25
1
trouble installing SparseM
Dear R People: I am attempting to install SparseM on R 2.15.0 on a Linux 11.10 system. Here is the output > install.packages("SparseM",depen=TRUE) Installing package(s) into ?/home/erin/R/x86_64-pc-linux-gnu-library/2.15? (as ?lib? is unspecified) --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done trying URL
2017 Jul 31
1
claiming unsused space back
If you are using XFS - there is mount option "discard|nodiscard" From XFS man page: discard|nodiscard Enable/disable the issuing of commands to let the block device reclaim space freed by the filesystem. This is useful for SSD devices, thinly provisioned LUNs and virtual machine images, but may have a performance impact. Note: It is currently
2011 May 30
7
libxl build errors in xen-unstable
There are new build errors in xen-unstable since revision 23368. Wether the _libxl_paths.h.tmp/_libxl_paths.h errros/warnings are new, no idea. Olaf .......... make -C libxl install make[3]: Entering directory `/usr/src/packages/BUILD/xen-unstable.hg-4.2.23437/tools/libxl'' python gentypes.py libxl.idl __libxl_types.h __libxl_types.c rm -f _libxl_paths.h.tmp.tmp; echo
2009 Feb 09
0
[LLVMdev] 2.5 Pre-release1 available for testing
Hi Tanya, I see the following warnings when building. I'm not sure how to fix any of them. The last one looks like it might be serious (seems like a job 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
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 headers
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
2011 Feb 26
1
make world error
This time make world on Ubuntu 10.04 gives following error gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .fsimage.so.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/
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
2013 Feb 24
7
Help: rJava ubuntu 12.04
Hola buenas, utlimamente estoy teniendo más problemas con mi equipo de los que debería. Bajo windows no me funciona bien Rstudio y bajo linux soy incapaz de instalar rJava. ¿Alguien que sepa de Linux me podría ayudar? He probado a instalar los openJDK y nada. También he probado, para instalar Java, a hacer un: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update && sudo
2009 Feb 03
1
Warnings during a compile
Here is just one example of a warning when compiling asterisk on Ubuntu 8.10 manager.c:1760: warning: ignoring return value of ?read?, declared with attribute warn_unused_result is this anything to worry about? can i safely ignore it? Thanks Robb
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
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
2005 Jan 21
0
Problem compiling zaptel-1.0.3
I am having a problem compiling zaptel on my Arch Linux (linux 2.6.10) system: CC [M] /home/sbn/src/zaptel-1.0.3/wcfxs.o /home/sbn/src/zaptel-1.0.3/wcfxs.c: In function `wcfxs_interrupt': /home/sbn/src/zaptel-1.0.3/wcfxs.c:473: sorry, unimplemented: inlining failed in call to 'wcfxs_proslic_check_hook': function body not available /home/sbn/src/zaptel-1.0.3/wcfxs.c:810: sorry,
2004 Jun 23
2
problems compiling zaptel X100P on Redhat Fedora 2.6.5-1.358
Hi can you help ? I have been trying to compile the zaptel modules all day for installation with out success, see messages below.... Setup as follows X100P card Intel Celeron (686) 1.7ghz processor Redhat Fedora Core 2 (Linux-2.6.5-1.358) When I do the make I get the following errors Any comments would be great ====> make make -C /usr/src/linux-2.6.5-1.358 SUBDIRS=/asterisk/zaptel-0.9.1
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
2009 Nov 20
1
[LLVMdev] VMKIT problem
Yes I did, one thing worth mentioning is on running configure for GNU Classpath towards the end this error is displayed and it crashes, I assumed it was okay and went to create the symbolic links and completed the rest of the process with vmkit mentioned in Getting Started as instructed: -I../../../native/jni/native-lib -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes
2005 Jul 11
4
Zaptel won't compile under Fedora Core 4
I hope someone can offer me some help with this. Basically, the current CVS version of Zaptel will not compile under Fedora Core 4. I have closely followed the directions in http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3 using the versions given in the FC4 distro with no luck. Here's the output when I run "make linux26". Any help would be great. TIA.
2010 May 15
1
Unable to build tools/libxl for weeks
Hi, I am unable to build libxl from the tools. I am getting always the following error. Disabling Werror did not solve the problem: === PCI passthrough capability has been enabled === === PCI passthrough capability has been enabled === make[4]: Entering directory `/usr/src/xen-unstable.hg/tools/ioemu-remote/i386-dm'' /usr/src/xen-unstable.hg//tools/cross-install -d -m0755 -p