]> Savannah Git Hosting - gnulib.git/commit
quotearg: pacify -Wswitch-enum
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Feb 2025 23:32:15 +0000 (15:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 2 Feb 2025 23:36:13 +0000 (15:36 -0800)
commitb00b18c2da72363089e52af2a83acea77a7b77d9
tree992bc2e6aa6791eade46e7ccdb263e09400b7774
parentb838e1a5d0b36aa451011c2de9fa710f1165cf87
quotearg: pacify -Wswitch-enum

* lib/quotearg.c (quotearg_buffer_restyled): Use switch (+E), and
omit default case, to pacify gcc -Wswitch-enum.  This is a good
way to pacify -Wswitch-enum when we don’t want to enumerate
all the enum values.  Omit unnecessary ‘default: break;’s.
ChangeLog
lib/quotearg.c