mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
add -Wpointer-arith -Wcast-qual -Wcast-align and others to compile flags, and fix const cast warnings generated by new flags
git-svn-id: svn://localhost/ardour2/branches/3.0@13124 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
69ca705286
commit
760ccbabfb
16 changed files with 37 additions and 24 deletions
|
|
@ -295,7 +295,7 @@ long long unsigned int system_available_physical_mem() {
|
|||
char buf[256];
|
||||
long long unsigned int res = 0;
|
||||
|
||||
if (0<read_string((char*)"/proc/meminfo", buf, sizeof (buf))) {
|
||||
if (0<read_string(const_cast<char*>("/proc/meminfo"), buf, sizeof (buf))) {
|
||||
if (strncmp (buf, "MemTotal:", 9) == 0) {
|
||||
if (sscanf (buf, "%*s %llu", &res) != 1) {
|
||||
perror ("parse error in /proc/meminfo");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue