Vito-Maiocchi / WindowManager

2 stars 0 forks source link

Segmentation fault #1

Open NiciTheNici opened 2 years ago

NiciTheNici commented 2 years ago

When running ./build.sh I get the following error messages

❯ ./build.sh
src/WindowManager.cpp: In function ‘void draw()’:
src/WindowManager.cpp:7:33: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    7 |     titlebarDrawText(0, 10, 10, "LECK MICH DU HUERE NUTTE !!!");
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/WindowManager.cpp: In function ‘int main()’:
src/WindowManager.cpp:23:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   23 |     titlebarInit(30, "Open Sans", Colors);
      |                      ^~~~~~~~~~~
src/WindowManager.cpp:26:33: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   26 |     titlebarDrawText(0, 10, 10, "LECK MICH DU HUERE NUTTE !!!");
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/WindowManager.cpp: In function ‘void handleKeyPress(unsigned int, unsigned int, unsigned int)’:
src/WindowManager.cpp:38:68: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   38 |     if( (key == KEY_ENTER) && mod_mask == MODMASK_WIN) clientSpawn("alacritty");
      |                                                                    ^~~~~~~~~~~
./build.sh: line 5: 13325 Segmentation fault      (core dumped) DISPLAY=:1 ./WindowManager
~/Documents/git/WindowManager master !1 ❯          

There appears to be impossible to convert the string LECK MICH DU HUERE NUTTE !!! to 'char'... Which then results in a SegFault.

NiciTheNici commented 2 years ago
 __________________________________
< but I'm not a C dev so good luck >
 ----------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||