[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
273/376: Fix more warnings
From: |
Ludovic Courtès |
Subject: |
273/376: Fix more warnings |
Date: |
Wed, 28 Jan 2015 22:05:34 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit 3a9b4a146777ae219ec890c2f806d33f26bd5829
Author: Eelco Dolstra <address@hidden>
Date: Tue Oct 14 15:14:54 2014 +0200
Fix more warnings
---
src/libexpr/eval.cc | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 5b9db6e..8bc992d 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -212,9 +212,9 @@ EvalState::EvalState(const Strings & _searchPath)
allocated. This might be a problem on systems that don't
overcommit. */
if (!getenv("GC_INITIAL_HEAP_SIZE")) {
- size_t maxSize = 384 * 1024 * 1024;
size_t size = 32 * 1024 * 1024;
#if HAVE_SYSCONF && defined(_SC_PAGESIZE) && defined(_SC_PHYS_PAGES)
+ size_t maxSize = 384 * 1024 * 1024;
long pageSize = sysconf(_SC_PAGESIZE);
long pages = sysconf(_SC_PHYS_PAGES);
if (pageSize != -1)
@@ -312,11 +312,6 @@ LocalNoInlineNoReturn(void throwEvalError(const char * s,
const Symbol & sym, co
throw EvalError(format(s) % sym % p1 % p2);
}
-LocalNoInlineNoReturn(void throwTypeError(const char * s))
-{
- throw TypeError(s);
-}
-
LocalNoInlineNoReturn(void throwTypeError(const char * s, const Pos & pos))
{
throw TypeError(format(s) % pos);
@@ -327,11 +322,6 @@ LocalNoInlineNoReturn(void throwTypeError(const char * s,
const string & s1))
throw TypeError(format(s) % s1);
}
-LocalNoInlineNoReturn(void throwTypeError(const char * s, const string & s1,
const string & s2))
-{
- throw TypeError(format(s) % s1 % s2);
-}
-
LocalNoInlineNoReturn(void throwTypeError(const char * s, const ExprLambda &
fun, const Symbol & s2, const Pos & pos))
{
throw TypeError(format(s) % fun.showNamePos() % s2 % pos);
- 284/376: SSH.pm: Print a friendlier message if connecting fails, (continued)
- 284/376: SSH.pm: Print a friendlier message if connecting fails, Ludovic Courtès, 2015/01/28
- 278/376: Typo, Ludovic Courtès, 2015/01/28
- 292/376: Add a test for the binary tarball installer, Ludovic Courtès, 2015/01/28
- 296/376: Disable vacuuming the DB after garbage collection, Ludovic Courtès, 2015/01/28
- 298/376: Fix bad operator, Ludovic Courtès, 2015/01/28
- 270/376: Revert "Temporarily disable darwin builds while hydra's darwin is borked", Ludovic Courtès, 2015/01/28
- 283/376: Doh, Ludovic Courtès, 2015/01/28
- 300/376: import derivation: cleanup, Ludovic Courtès, 2015/01/28
- 264/376: Temporarily disable darwin builds while hydra's darwin is borked, Ludovic Courtès, 2015/01/28
- 291/376: Fix message, Ludovic Courtès, 2015/01/28
- 273/376: Fix more warnings,
Ludovic Courtès <=
- 258/376: Fix nix-copy-closure --from, Ludovic Courtès, 2015/01/28
- 260/376: Drop support for pre-c++11 compilers., Ludovic Courtès, 2015/01/28
- 262/376: Revert "Drop support for pre-c++11 compilers.", Ludovic Courtès, 2015/01/28
- 263/376: Fix build on gcc < 4.7, Ludovic Courtès, 2015/01/28
- 244/376: Show total allocations, Ludovic Courtès, 2015/01/28
- 293/376: Remove Hydra build product, Ludovic Courtès, 2015/01/28
- 279/376: Add a launchd configuration file to run nix-daemon, Ludovic Courtès, 2015/01/28
- 251/376: nix-channel --add: Validate URL / channel ID, Ludovic Courtès, 2015/01/28
- 252/376: Remove redundant space in usage errors, Ludovic Courtès, 2015/01/28
- 290/376: realiseContext: Handle all context types, Ludovic Courtès, 2015/01/28