Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation error with [-Werror=format-security] #210

Merged
merged 1 commit into from
Oct 11, 2021

Commits on Oct 9, 2021

  1. Fix compilation error with [-Werror=format-security]

    When compiling with [-Werror=format-security] in Debian packaging occurs this error:
    ```
    cui.cpp: In function ‘void show_ncurses(Line**, int)’:                                          
    cui.cpp:377:73: error: format not a string literal and no format arguments [-Werror=format-security]
      377 |   mvprintw(3 + 1 + i, cols - COLUMN_WIDTH_UNIT, desc_view_mode[viewMode]);              
          |                                                                         ^               
    cui.cpp:379:29: warning: zero-length gnu_printf format string [-Wformat-zero-length]            
      379 |   mvprintw(totalrow + 1, 0, "");                                                        
          |                             ^~      
    ```
    
    This patch solve the problem.
    
    []'s
    kretcheu
    kretcheu authored Oct 9, 2021
    Configuration menu
    Copy the full SHA
    455daf3 View commit details
    Browse the repository at this point in the history