Menu

#26 minor refactor in windows.cc, fix build issue

None
closed
None
5
2020-04-17
2020-04-16
No

on buster (Debian 10)

g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -MT windows.o -MD -MP -MF .deps/windows.Tpo -c -o windows.o windows.cc
In file included from windows.h:20,
                 from windows.cc:16:
windows.cc: In member functionvoid Window::outch(char, int)’:
windows.cc:430:67: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
                   if (fg > 7) atr = COLOR_PAIR(alloc_pair(f - 8, b)) | A_BOLD;
                                                                   ^
In file included from windows.h:20,
                 from windows.cc:16:
/usr/include/curses.h:931:28: note: candidate 1: ‘int alloc_pair(int, int)extern NCURSES_EXPORT(int) alloc_pair (int, int);
                            ^~~~~~~~~~
windows.cc:45:5: note: candidate 2: ‘int alloc_pair(short int, short int)int alloc_pair(short f, short b)
     ^~~~~~~~~~

I think there's now an alloc_pair that is part of curses.

Discussion

  • Steven R. Loomis

    • Group: -->
     
  • Steven R. Loomis

    OK., thanks Please close this then.

     
  • David Ranch

    David Ranch - 2020-04-17
    • status: open --> closed
    • assigned_to: Martin Cooper
     
  • David Ranch

    David Ranch - 2020-04-17

    Already fixed in the develop branch

     

Log in to post a comment.