From 557058ad8d59dcd8bfc0cbfbf57d79c13e668aeb Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Wed, 2 Mar 2022 06:46:08 -0700 Subject: [PATCH] . --- content/post/20220301-gcc-flags/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/post/20220301-gcc-flags/index.md b/content/post/20220301-gcc-flags/index.md index fed48a7..e0405e5 100644 --- a/content/post/20220301-gcc-flags/index.md +++ b/content/post/20220301-gcc-flags/index.md @@ -45,7 +45,7 @@ The summaries are taken from https://gcc.gnu.org/onlinedocs/gcc/Warning-Options. * `-Wall`: turns on many warnings, but not "all." * `-Wextra`: turns on even more warnings, but still not all. * `-Wcast-align`: warn whenever a pointer is cast such that the required alignment is increased (`char*` -> `int*`). -* `-Wcast-qual`: warn when qualifier (`cosnst`) is cast away, or introduces a qualifier in an unsafe way. +* `-Wcast-qual`: warn when qualifier (`const`) is cast away, or introduces a qualifier in an unsafe way. * `-Wdisabled-optimization`: warn if a requested optimization pass is disabled (e.g. code is too large, has some other feature that makes g++ give up). * `-Wduplicated-branches`: warn if if-else branches have identical bodies. * `-Wduplicated-cond`: warn about duplicated conditions in an if-else-if chain.