Closed rbuj closed 1 year ago
Congratulation, i can confirm that 38 warnings are gone.
1422:terminal-profile.c:1289:69: warning: implicit conversion turns string literal into bool: 'char [11]' to '_Bool' [-Wstring-conversion]
1434:terminal-profile.c:1290:91: warning: implicit conversion turns string literal into bool: 'char [22]' to '_Bool' [-Wstring-conversion]
1446:terminal-profile.c:1291:89: warning: implicit conversion turns string literal into bool: 'char [21]' to '_Bool' [-Wstring-conversion]
1458:terminal-profile.c:1292:71: warning: implicit conversion turns string literal into bool: 'char [12]' to '_Bool' [-Wstring-conversion]
1470:terminal-profile.c:1293:83: warning: implicit conversion turns string literal into bool: 'char [18]' to '_Bool' [-Wstring-conversion]
1482:terminal-profile.c:1294:89: warning: implicit conversion turns string literal into bool: 'char [21]' to '_Bool' [-Wstring-conversion]
1494:terminal-profile.c:1295:87: warning: implicit conversion turns string literal into bool: 'char [20]' to '_Bool' [-Wstring-conversion]
1506:terminal-profile.c:1296:81: warning: implicit conversion turns string literal into bool: 'char [17]' to '_Bool' [-Wstring-conversion]
1518:terminal-profile.c:1297:71: warning: implicit conversion turns string literal into bool: 'char [12]' to '_Bool' [-Wstring-conversion]
1530:terminal-profile.c:1298:77: warning: implicit conversion turns string literal into bool: 'char [15]' to '_Bool' [-Wstring-conversion]
1542:terminal-profile.c:1299:85: warning: implicit conversion turns string literal into bool: 'char [19]' to '_Bool' [-Wstring-conversion]
1554:terminal-profile.c:1300:95: warning: implicit conversion turns string literal into bool: 'char [24]' to '_Bool' [-Wstring-conversion]
1566:terminal-profile.c:1301:65: warning: implicit conversion turns string literal into bool: 'char [9]' to '_Bool' [-Wstring-conversion]
1578:terminal-profile.c:1302:65: warning: implicit conversion turns string literal into bool: 'char [9]' to '_Bool' [-Wstring-conversion]
1590:terminal-profile.c:1303:79: warning: implicit conversion turns string literal into bool: 'char [16]' to '_Bool' [-Wstring-conversion]
1602:terminal-profile.c:1304:81: warning: implicit conversion turns string literal into bool: 'char [17]' to '_Bool' [-Wstring-conversion]
1614:terminal-profile.c:1306:68: warning: implicit conversion turns string literal into bool: 'char [17]' to '_Bool' [-Wstring-conversion]
1626:terminal-profile.c:1307:62: warning: implicit conversion turns string literal into bool: 'char [11]' to '_Bool' [-Wstring-conversion]
1638:terminal-profile.c:1308:70: warning: implicit conversion turns string literal into bool: 'char [5]' to '_Bool' [-Wstring-conversion]
1650:terminal-profile.c:1309:68: warning: implicit conversion turns string literal into bool: 'char [17]' to '_Bool' [-Wstring-conversion]
1662:terminal-profile.c:1312:96: warning: implicit conversion turns string literal into bool: 'char [20]' to '_Bool' [-Wstring-conversion]
1674:terminal-profile.c:1314:107: warning: implicit conversion turns string literal into bool: 'char [16]' to '_Bool' [-Wstring-conversion]
1686:terminal-profile.c:1315:105: warning: implicit conversion turns string literal into bool: 'char [18]' to '_Bool' [-Wstring-conversion]
1698:terminal-profile.c:1316:108: warning: implicit conversion turns string literal into bool: 'char [18]' to '_Bool' [-Wstring-conversion]
1710:terminal-profile.c:1317:93: warning: implicit conversion turns string literal into bool: 'char [13]' to '_Bool' [-Wstring-conversion]
1722:terminal-profile.c:1318:98: warning: implicit conversion turns string literal into bool: 'char [15]' to '_Bool' [-Wstring-conversion]
1734:terminal-profile.c:1319:95: warning: implicit conversion turns string literal into bool: 'char [12]' to '_Bool' [-Wstring-conversion]
1746:terminal-profile.c:1320:116: warning: implicit conversion turns string literal into bool: 'char [19]' to '_Bool' [-Wstring-conversion]
1758:terminal-profile.c:1321:92: warning: implicit conversion turns string literal into bool: 'char [11]' to '_Bool' [-Wstring-conversion]
1770:terminal-profile.c:1323:94: warning: implicit conversion turns string literal into bool: 'char [21]' to '_Bool' [-Wstring-conversion]
1782:terminal-profile.c:1324:88: warning: implicit conversion turns string literal into bool: 'char [18]' to '_Bool' [-Wstring-conversion]
1794:terminal-profile.c:1325:90: warning: implicit conversion turns string literal into bool: 'char [17]' to '_Bool' [-Wstring-conversion]
1806:terminal-profile.c:1330:90: warning: implicit conversion turns string literal into bool: 'char [17]' to '_Bool' [-Wstring-conversion]
1818:terminal-profile.c:1331:76: warning: implicit conversion turns string literal into bool: 'char [15]' to '_Bool' [-Wstring-conversion]
1830:terminal-profile.c:1332:61: warning: implicit conversion turns string literal into bool: 'char [6]' to '_Bool' [-Wstring-conversion]
1842:terminal-profile.c:1333:75: warning: implicit conversion turns string literal into bool: 'char [13]' to '_Bool' [-Wstring-conversion]
1854:terminal-profile.c:1334:68: warning: implicit conversion turns string literal into bool: 'char [11]' to '_Bool' [-Wstring-conversion]
1866:terminal-profile.c:1336:88: warning: implicit conversion turns string literal into bool: 'char [8]' to '_Bool' [-Wstring-conversion]
But i think we have new warnings compared with master. https://app.travis-ci.com/github/mate-desktop/mate-terminal/jobs/544447713#L787
src/terminal-profile.c:1289:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (ALLOW_BOLD, DEFAULT_ALLOW_BOLD, KEY_ALLOW_BOLD);
^
src/terminal-profile.c:1290:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (BOLD_COLOR_SAME_AS_FG, DEFAULT_BOLD_COLOR_SAME_AS_FG, KEY_BOLD_COLOR_SAME_AS_FG);
^
src/terminal-profile.c:1291:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (DEFAULT_SHOW_MENUBAR, DEFAULT_DEFAULT_SHOW_MENUBAR, KEY_DEFAULT_SHOW_MENUBAR);
^
src/terminal-profile.c:1292:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (LOGIN_SHELL, DEFAULT_LOGIN_SHELL, KEY_LOGIN_SHELL);
^
src/terminal-profile.c:1293:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (SCROLL_BACKGROUND, DEFAULT_SCROLL_BACKGROUND, KEY_SCROLL_BACKGROUND);
^
src/terminal-profile.c:1294:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (SCROLLBACK_UNLIMITED, DEFAULT_SCROLLBACK_UNLIMITED, KEY_SCROLLBACK_UNLIMITED);
^
src/terminal-profile.c:1295:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (SCROLL_ON_KEYSTROKE, DEFAULT_SCROLL_ON_KEYSTROKE, KEY_SCROLL_ON_KEYSTROKE);
^
src/terminal-profile.c:1296:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (SCROLL_ON_OUTPUT, DEFAULT_SCROLL_ON_OUTPUT, KEY_SCROLL_ON_OUTPUT);
^
src/terminal-profile.c:1297:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (SILENT_BELL, DEFAULT_SILENT_BELL, KEY_SILENT_BELL);
^
src/terminal-profile.c:1298:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (COPY_SELECTION, DEFAULT_COPY_SELECTION, KEY_COPY_SELECTION);
^
src/terminal-profile.c:1299:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (USE_CUSTOM_COMMAND, DEFAULT_USE_CUSTOM_COMMAND, KEY_USE_CUSTOM_COMMAND);
^
src/terminal-profile.c:1300:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (USE_CUSTOM_DEFAULT_SIZE, DEFAULT_USE_CUSTOM_DEFAULT_SIZE, KEY_USE_CUSTOM_DEFAULT_SIZE);
^
src/terminal-profile.c:1301:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (USE_SKEY, DEFAULT_USE_SKEY, KEY_USE_SKEY);
^
src/terminal-profile.c:1302:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (USE_URLS, DEFAULT_USE_URLS, KEY_USE_URLS);
^
src/terminal-profile.c:1303:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (USE_SYSTEM_FONT, DEFAULT_USE_SYSTEM_FONT, KEY_USE_SYSTEM_FONT);
^
src/terminal-profile.c:1304:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOOLEAN (USE_THEME_COLORS, DEFAULT_USE_THEME_COLORS, KEY_USE_THEME_COLORS);
^
src/terminal-profile.c:1306:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOXED (BACKGROUND_COLOR, GDK_TYPE_RGBA, KEY_BACKGROUND_COLOR);
^
src/terminal-profile.c:1307:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOXED (BOLD_COLOR, GDK_TYPE_RGBA, KEY_BOLD_COLOR);
^
src/terminal-profile.c:1308:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOXED (FONT, PANGO_TYPE_FONT_DESCRIPTION, KEY_FONT);
^
src/terminal-profile.c:1309:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_BOXED (FOREGROUND_COLOR, GDK_TYPE_RGBA, KEY_FOREGROUND_COLOR);
^
src/terminal-profile.c:1312:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_DOUBLE (BACKGROUND_DARKNESS, 0.0, 1.0, DEFAULT_BACKGROUND_DARKNESS, KEY_BACKGROUND_DARKNESS);
^
src/terminal-profile.c:1314:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_ENUM (BACKGROUND_TYPE, TERMINAL_TYPE_BACKGROUND_TYPE, DEFAULT_BACKGROUND_TYPE, KEY_BACKGROUND_TYPE);
^
src/terminal-profile.c:1315:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_ENUM (BACKSPACE_BINDING, VTE_TYPE_ERASE_BINDING, DEFAULT_BACKSPACE_BINDING, KEY_BACKSPACE_BINDING);
^
src/terminal-profile.c:1316:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_ENUM (CURSOR_BLINK_MODE, VTE_TYPE_CURSOR_BLINK_MODE, DEFAULT_CURSOR_BLINK_MODE, KEY_CURSOR_BLINK_MODE);
^
src/terminal-profile.c:1317:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_ENUM (CURSOR_SHAPE, VTE_TYPE_CURSOR_SHAPE, DEFAULT_CURSOR_SHAPE, KEY_CURSOR_SHAPE);
^
src/terminal-profile.c:1318:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_ENUM (DELETE_BINDING, VTE_TYPE_ERASE_BINDING, DEFAULT_DELETE_BINDING, KEY_DELETE_BINDING);
^
src/terminal-profile.c:1319:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_ENUM (EXIT_ACTION, TERMINAL_TYPE_EXIT_ACTION, DEFAULT_EXIT_ACTION, KEY_EXIT_ACTION);
^
src/terminal-profile.c:1320:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_ENUM (SCROLLBAR_POSITION, TERMINAL_TYPE_SCROLLBAR_POSITION, DEFAULT_SCROLLBAR_POSITION, KEY_SCROLLBAR_POSITION);
^
src/terminal-profile.c:1321:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_ENUM (TITLE_MODE, TERMINAL_TYPE_TITLE_MODE, DEFAULT_TITLE_MODE, KEY_TITLE_MODE);
^
src/terminal-profile.c:1323:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_INT (DEFAULT_SIZE_COLUMNS, 1, 1024, DEFAULT_DEFAULT_SIZE_COLUMNS, KEY_DEFAULT_SIZE_COLUMNS);
^
src/terminal-profile.c:1324:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_INT (DEFAULT_SIZE_ROWS, 1, 1024, DEFAULT_DEFAULT_SIZE_ROWS, KEY_DEFAULT_SIZE_ROWS);
^
src/terminal-profile.c:1325:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_INT (SCROLLBACK_LINES, 1, G_MAXINT, DEFAULT_SCROLLBACK_LINES, KEY_SCROLLBACK_LINES);
^
src/terminal-profile.c:1330:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_STRING (BACKGROUND_IMAGE_FILE, DEFAULT_BACKGROUND_IMAGE_FILE, KEY_BACKGROUND_IMAGE_FILE);
^
src/terminal-profile.c:1331:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_STRING (CUSTOM_COMMAND, DEFAULT_CUSTOM_COMMAND, KEY_CUSTOM_COMMAND);
^
src/terminal-profile.c:1332:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_STRING (TITLE, _(DEFAULT_TITLE), KEY_TITLE);
^
src/terminal-profile.c:1333:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_STRING (VISIBLE_NAME, _(DEFAULT_VISIBLE_NAME), KEY_VISIBLE_NAME);
^
src/terminal-profile.c:1334:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_STRING (WORD_CHARS, DEFAULT_WORD_CHARS, KEY_WORD_CHARS);
^
src/terminal-profile.c:1336:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare]
TERMINAL_PROFILE_PROPERTY_VALUE_ARRAY_BOXED (PALETTE, "palette-color", GDK_TYPE_RGBA, KEY_PALETTE);
I think the cppcheck warnings are now fixed
build command:
build warnings: