magic/database
Darryl L. Miles 9225fa6cf1 4 x warning: suggest explicit braces to avoid ambiguous 'else'
Give compiler the extra braces it recommends.

DBio.c edited as my original change was caught out by the incorrect
indention of the 'else' keyword and my modification would have caused a
NULL deref.   Exactly the kind of issue this warning is trying to prevent.

CmdTZ.c:417:20: warning: suggest explicit braces to avoid ambiguous 'else'
DBio.c:1422:12: warning: suggest explicit braces to avoid ambiguous 'else'
DBpaint2.c:285:12: warning: suggest explicit braces to avoid ambiguous 'else'
DBpaint2.c:384:12: warning: suggest explicit braces to avoid ambiguous 'else'

GCC14 -Wall cleanup series [-Wdangling-else]
2024-10-09 21:12:55 -04:00
..
DBbound.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
DBcell.c Corrected an error in the check for coincident instances. This 2023-02-28 16:49:17 -05:00
DBcellbox.c Found no fewer than three separate places that cause a pop-up prompt 2021-03-16 22:46:46 -04:00
DBcellcopy.c DBcellcopy.c: fix warning: self-comparison always evaluates to false 2024-10-09 20:50:00 -04:00
DBcellname.c DBPropGet(): error: assignment to 'char *' from 'ClientData' 2024-10-09 20:35:19 -04:00
DBcellsel.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
DBcellsrch.c database/DBcellsrch.c: Wrong type of arguments to formatting function 2024-10-01 12:36:12 -04:00
DBcellsubr.c Corrected behavior of "load ... -dereference" to bring back a 2023-04-18 11:01:58 -04:00
DBconnect.c Removed an "if" statement that was apparently designed to 2024-04-11 15:18:25 -04:00
DBcount.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
DBexpand.c Added the ability to track the first CellDef to fail to read and 2024-04-29 17:43:37 -04:00
DBio.c 4 x warning: suggest explicit braces to avoid ambiguous 'else' 2024-10-09 21:12:55 -04:00
DBlabel.c Altered the behavior of handling labels when a layer under a label 2024-05-04 21:12:55 -04:00
DBlabel2.c Corrected behavior of "load ... -dereference" to bring back a 2023-04-18 11:01:58 -04:00
DBpaint.c Don't cast pointer to struct and back again in DBDiagonalProc() 2023-01-16 11:00:47 +11:00
DBpaint2.c 4 x warning: suggest explicit braces to avoid ambiguous 'else' 2024-10-09 21:12:55 -04:00
DBprop.c Corrected a small issue in the "property" command that will attempt 2022-02-15 12:01:11 -05:00
DBtcontact.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
DBtech.c database/DBtech.c: Incorrect return-value check for a 'scanf'-like function 2024-10-01 12:36:12 -04:00
DBtechname.c Corrected the (minor) problem caused by the slightly different handling 2020-10-18 14:28:23 -04:00
DBtechtype.c GCC14: warning: missing braces around initializer 2024-10-09 21:12:55 -04:00
DBtiles.c database/DBtiles.c: Multiplication result converted to larger type 2024-10-01 12:36:13 -04:00
DBtimestmp.c Corrected behavior of "load ... -dereference" to bring back a 2023-04-18 11:01:58 -04:00
DBtpaint.c Corrected an error caused by fixing the unterminated comment in 2021-07-13 14:08:35 -04:00
DBtpaint2.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
DBundo.c Updated the revision number to go along with the merge of pull 2024-10-01 12:56:31 -04:00
Makefile Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
database.h.in Added the ability to track the first CellDef to fail to read and 2024-04-29 17:43:37 -04:00
databaseInt.h Compatibility with C99 standard 2022-10-29 06:07:46 +02:00
fonts.h Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00