diff --git a/6-InRealEnvironment/3-Compilers.ipynb b/6-InRealEnvironment/3-Compilers.ipynb index 45a645ddb6560258a6e3af590f2e8db2b5a35ff5..570bd4c5823b564eecc4fe5c53d8ba08510eeb9e 100644 --- a/6-InRealEnvironment/3-Compilers.ipynb +++ b/6-InRealEnvironment/3-Compilers.ipynb @@ -76,6 +76,14 @@ "\n", "Some are intentionally deactivated, and plenty others I probably don't know - especially if they were introduced since I established this list (by adapting one provided on StackOverflow...) some years ago...\n", "\n", + "An answer to this [StackOverflow post](https://stackoverflow.com/questions/11714827/how-can-i-turn-on-literally-all-of-gccs-warnings) provides a command to extract the list of all warnings used by gcc (unfortunately without filtering for the language used):\n", + "\n", + "```shell\n", + "gcc -Q --help=warning | sed -e 's/^\\s*\\(\\-\\S*\\)\\s*\\[\\w*\\]/\\1 /gp;d' | tr -d '\\n'\n", + "```\n", + "\n", + "\n", + "\n", "### Standard library\n", "\n", "GNU also provides its implementation of the standard C++ library, which is called **libstdc++**.\n",