bugGNU nano - Bugs: bug #66467, compile error with gcc-15 for...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #66467: compile error with gcc-15 for nano-8.2

Submitter:  Rudi Heitbaum <heitbaum>
Submitted:  Wed 20 Nov 2024 07:50:11 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Open

Wed 20 Nov 2024 12:09:35 PM UTC, comment #3: 

Thanks for confirming.  Fixed in git, commit 9d181a1c.

(There will be a new release some time next month.)

Benno Schulenberg <bens>
Group administrator
Wed 20 Nov 2024 11:27:11 AM UTC, comment #2: 

I can confirm that nano now compiles without error with the attached patch

Rudi Heitbaum <heitbaum>
Wed 20 Nov 2024 10:44:21 AM UTC, comment #1: 

Thanks for reporting.  Can you confirm that the attached patch fixes the compilation issue?


(file #56630)

Benno Schulenberg <bens>
Group administrator
Wed 20 Nov 2024 07:50:11 AM UTC, original submission:  

compile of nano 8.2 with gcc 15-20241117 errors as below.

gcc -DHAVE_CONFIG_H -I. -I/build/nano-8.2/src -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../lib -I/build/nano-8.2/lib -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -march=x86-64-v3 -Wall -pipe  -O2 -fomit-frame-pointer -DNDEBUG -Wall -MT move.o -MD -MP -MF .deps/move.Tpo -c -o move.o /build/nano-8.2/src/move.c

../../src/move.c: In function 'to_top_row':
../../src/move.c:192:24: error: assignment to 'NCURSES_BOOL' {aka 'int'} from 'linestruct *' makes integer from pointer without a cast [-Wint-conversion]
  192 |         refresh_needed = (openfile->mark);
      |                        ^
../../src/move.c: In function 'to_bottom_row':
../../src/move.c:208:24: error: assignment to 'NCURSES_BOOL' {aka 'int'} from 'linestruct *' makes integer from pointer without a cast [-Wint-conversion]
  208 |         refresh_needed = (openfile->mark);
      |                        ^
make[2]: * [Makefile:2274: move.o] Error 1

Rudi Heitbaum <heitbaum>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Updated the item)
  • -email is unavailable- added by heitbaum (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-11-20 bens StatusReady for test Fixed
    2024-11-20 bens Attached File- Added 0001-build-fix-a-compilation-error-with-gcc-15.patch, #56630
        Severity3 - Normal 2 - Minor
        StatusNone Ready for test
        Assigned toNone bens
        Summarynano 8.2 compile error with gcc-15 compile error with gcc-15 for nano-8.2

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code