Compiler warnings

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

Post Reply
KDJ
Posts: 159
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 140 times

Compiler warnings

Post by KDJ » Fri Nov 11, 2016 10:15 pm

If you compile a program with the parameter "-w3", the compiler generates such warnings:
"Ambiguous reference, assuming memvar '_HMG_SYSDATA'"
"Ambiguous reference, assuming memvar '_HMG_DEFAULTICONNAME'"

To avoid these warnings, could you add in the file "hmg.ch" a declaration of all public variables used in HMG:

Code: Select all

MEMVAR _HMG_SYSDATA
MEMVAR _HMG_DEFAULTICONNAME
MEMVAR ...

User avatar
Pablo César
Posts: 4053
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 175 times

Post by Pablo César » Sun Apr 09, 2017 8:56 am

I think it's a good idea, I believe that should be the way.

I also do not know if this measure would accuse duplicity of statement or something...
and then demand a lot of work to fix (it would be a nightmare) :?

But anyway, if you're not totally sure as I see it, someday it should be fixed.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Rathinagiri
Posts: 5105
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 95 times
Been thanked: 107 times
Contact:

Post by Rathinagiri » Sun Apr 09, 2017 11:05 am

Thank you. Let me try.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
apais
Posts: 232
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 18 times
Been thanked: 7 times
Contact:

Post by apais » Sun Apr 09, 2017 2:38 pm

Another way would be to replace EVERY instance of _HMG_SYSDATA in source code with m->_HMG_SYSDATA
It's explicit and much xbase way.

HTH
Angel

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests