The 'intcompare' definition was causing a "cast from 'void*' to 'int' loses precision [-fpermissive]" error. It isn't used anywhere, so simply remove it. Same with 'findint' in texteditor.cc. Fix other "cast from ‘void*’ to ‘int’ loses precision" errors. --- a/kkstrtext-0.1/kkstrtext.cc 2005-01-31 18:13:24.000000000 -0600 +++ b/kkstrtext-0.1/kkstrtext.cc 2014-07-24 00:25:07.149305476 -0500 @@ -430,10 +430,6 @@ } } -int intcompare(void *s1, void *s2) { - return (int) s1 != (int) s2; -} - string i2str(int i) { char buf[64]; sprintf(buf, "%d", i); @@ -885,7 +881,7 @@ #ifdef HAVE_ICONV iconv_t cd = iconv_open(tocs.c_str(), fromcs.c_str()); - if(((int) cd) != -1) { + if(cd != (iconv_t) -1) { string r, text(atext); size_t inleft, outleft, soutleft; char *inbuf, *outbuf, *sinbuf, *soutbuf; --- a/kkconsui-0.1/src/texteditor.cc 2003-09-09 16:51:33.000000000 -0500 +++ b/kkconsui-0.1/src/texteditor.cc 2014-07-24 00:33:20.093279060 -0500 @@ -1939,10 +1939,6 @@ if(ur) delete ur; } -int texteditor::findint(void *p1, void *p2) { - return *(int *) p1 != (int) p2; -} - int texteditor::findhighline(void *p1, void *p2) { return *(int *) p1 != ((highline *) p2)->line; } --- a/src/streamtrack.cc 2006-05-11 12:45:20.000000000 -0500 +++ b/src/streamtrack.cc 2014-07-24 00:38:10.797263482 -0500 @@ -34,6 +34,7 @@ #include #include #include +#include #include t type='hidden' name='id' value='35ee173ca0f3fefa9094913f76b6fb82d0b61a8a'/>
AgeCommit message (Expand)Author
2018-06-09pull: Install the new Guix in a profile....* guix/scripts/pull.scm (%pull-version): New variable. (build-from-source): Pass #:pull-version to BUILD. (whole-package-for-legacy, derivation->manifest-entry): New procedure. (build-and-install): Rewrite in terms of 'build-and-use-profile'. * guix/scripts/system.scm (maybe-suggest-running-guix-pull)[latest]: Switch to "/current". * scripts/guix.in (augment-load-paths!): Remove use of ~/.config/guix/latest. * build-aux/compile-as-derivation.scm: Replace "/guix/latest/" with "/current/share/guile/site/X.Y" * guix/scripts.scm (warn-about-old-distro)[age]: Check "/current" instead of "/latest". * doc/guix.texi (Invoking guix pull): Document it. * doc/contributing.texi (Running Guix Before It Is Installed): Remove footnote about abusing ~/.config/guix/latest. Ludovic Courtès
2018-01-28guix: Let Emacs detect “scripts/guix.in” appropriate mode....Since commit 6f774d481839f87178c5895ac2d661e141f879b8 which introduces the use of Guile's meta switch in “scripts/guix.in”, Emacs was not using ‘scheme-mode’ for this file. * scripts/guix.in: Replace "-*- scheme -*-" with a local variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Mathieu Lirzin
2018-01-23guix: Refactor script....* scripts/guix.in: Remove empty surrounding ‘let’. Define 'main' as the procedure called when running the script. (maybe-augment-load-paths!): Rename to ... (augment-load-paths!): ... this. Use 'and=>' for 'file-exists?'. (run-guix-main): Rename to ... (main): ... this. Call 'augment-load-paths!'. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Mathieu Lirzin
2018-01-23build: Expand ‘scripts/guix’ at Make time....This moves the complexity of Autotools variable expansion outside of the application code. * scripts/guix.in (config-lookup): Delete. (maybe-augment-load-paths!, run-guix-main): Use fully expanded variables instead of calling ‘config-lookup’. * configure.ac: Don't use AC_CONFIG_FILES for ‘scripts/guix’. Use AC_PROG_SED. * Makefile.am (scripts/guix): New rule. (do_subst): New variable. (CLEANFILES, EXTRA_DIST): Adapt. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Mathieu Lirzin